 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
DeveloperWorld: How to make PHP apps scale
by Chris Cornutt May 25, 2012 @ 13:19:20
On DeveloperWorld today there's a new article talking about performance concerns and PHP application (and how your data source might be the problem).
The power of PHP and an RDBMS is the ability to nail the major features of an application with cheaply paid developers in a record amount of time. Unfortunately, the default runtime environment used by PHP is simply an unscalable mess. [...] The truth is that if you have enough servers and enough database servers, you don't have contention. [...] As it turns out, there's a modern solution to the problem: the cloud plus NoSQL. Cloud infrastructure gives us the ability to spin up enough servers, and a NoSQL database enables us to shard our data effectively.
They talk some about why they think PHP's runtine environment is "a dog" based on the non-native pooling of database connections and the lack of a thread-safe environment.
The bottom line: PHP applications are a load on the database due to the constraints of the concurrency model.
He points to the cloud architecture and NoSQL databases as solutions to the scalability problem, providing more scalable resources and flexible data sources.
voice your opinion now!
application scale nosql cloud computing platform
PHPMaster.com: Introduction to MongoDB
by Chris Cornutt October 27, 2011 @ 08:27:47
PHPMaster.com has a new tutorial today for those wanting to get into the MongoDb document-driven (NoSQL) database but haven't known where to start. This tutorial walks you through some of the basics including setup and configuration of both the server and PHP client side.
There are a lot of implementations of the NoSQL concept, but one of the most famous and widely used NoSQL databases is MongoDB. I think it's one of the most interesting NoSQL databases available currently, and it's considered by many to be one of the easiest to use (which has helped it gain widespread adoption). In this article I'll introduce you to NoSQL with MongoDB. You'll learn how to install the MongoDB extension for PHP, and how to add, update, and retrieve document objects.
He starts with an introduction to MongoDB and links to their site to grab the latest version of the database. A few simple steps later (including a call to install the mongo PECL module) and your PHP install is ready to go. Code snippets are included showing how to connect to the server and insert/update/select document records.
voice your opinion now!
introduction mongodb database document nosql tutorial
php|architect Blog: The NoSQL Hype Curve is Bending
by Chris Cornutt December 29, 2010 @ 12:58:12
On the php|architect blog today Bill Karwin has shared his thoughts on NoSQL and how, despite the popularity of it during 2010, the hype curve is bending and companies are realizing it's less of the "silver bullet" they expected.
The technology hype of 2010 was clearly NoSQL, which proved to be more of a brand-name than a technical term. Today in his tech blog, Bozho set out his view that NoSQL is probably not a good choice for startups that don't know yet where their database and application bottlenecks are.
Bill agrees, noting that the adoption of NoSQL technologies caused some major meltdowns when all things weren't properly considered. He points out that "a little knowledge is dangerous - the more little, the more dangerous" and developers should seriously consider the impact a NoSQL environment should have before jumping in head first.
voice your opinion now!
nosql opinion hype billkarwin silverbullet
Ibuildings techPortal: Using MongoDb in PHP Applications
by Chris Cornutt November 30, 2010 @ 09:52:48
New from the Ibuildings techPortal there's this article from Paul Matthews about using MongoDB in PHP applications. It's an introductory level tutorial that uses the MongoDB extension for PHP to interface with a local database.
This tutorial will show you how to incorporate MongoDB into new or existing object-oriented applications, by showing how to interact and integrate with applications and how to deploy applications using MongoDB. [...] If you've implemented MongoDB into many of your systems, then maybe this tutorial will, open your eyes on a new way of integrating it. Whatever your background, if you understand object-orientation and want to start using MongoDB, then this tutorial is for you.
He links you to the resources you'll need to get things set up - the extension and a MongoDB - as well as some "first steps" creating a sample Link and LinkPeer objects. There's code examples of how to pull in collections, insert data back into the database and update/delete too. You can grab the full source of his examples from his github account.
voice your opinion now!
mongodb tutorial extension database nosql
Juhana Rasanen's Blog: Using MongoDB with CodeIgniter
by Chris Cornutt November 05, 2010 @ 11:01:28
On the Juhana Rasanen's blog today there's a new tutorial showing you how to use the popular NoSQL database MongoDB with an application written in the CodeIgniter framework.
Considering using MongoDB instead of a SQL DB in your next CodeIgniter project? Well, we were and decided to take a stab at it, and fairly soon discovered that it is pretty straightforward. Even more so, if you don't try to use CI Active Record, but use native PHP Mongo interface to store and query your data. That suits our case, as we are planning to access the data mostly from Javascript UI over Ajax - in which case it is quite simple to just get the document from Mongo as an array and then serialize it to the UI using PHP JSON functions.
He talks about his extension of CI_Session to handle the session management and user authentication pulled from the MongoDB and used as normal in your application. He's made the package available for for download if you'd like to see how its implemented (there's a README for installation instructions).
voice your opinion now!
codeigniter framework mongodb database nosql integrate session
Zend Developer Zone: Getting Started with MongoDB and PHP
by Chris Cornutt June 08, 2010 @ 10:14:55
On the Zend Developer Zone there's a new article from Vikram Vaswani about what's becoming a more popular pairing of technologies in PHP applications - using MongoDB with PHP.
In this article, I'll introduce you to MongoDB, one of the new generation of schema-less database systems that is quickly gaining the attention of open source developers. Over the next few pages, I'll guide you through the process of getting started with MongoDB, showing you how to install it, set up a data store, connect to it and read and write data using PHP.
He shows you how to get your full environment set up - a local install of MongoDB and the PHP shared object to interface with it - as well as plenty of code examples to get you pointed in the right direction. He also shows a bit of how to use the Morph PHP library to interface with the database.
voice your opinion now!
mongodb introduction tutorial database nosql
DealTaker Blog: PHP & MongoDB Sitting in a Tree Part 1
by Chris Cornutt May 18, 2010 @ 11:37:18
On the DealTaker blog there's a recent post aiming to help you make the transition between a more traditional MySQL relational database structure over to one of the currently popular NoSQL databases MongoDB.
OK I'm going to assume you know what MongoDB is, so I'm not going to go over "what mongoDB is" or "what NoSQL is". I'm going to do this series in a little different styling than my other tutorial series have been, so let just jump right in.
He links you to two resources, getting Mongo installed and the extension for PHP that you can use to connect your applications to it. After that, it's all code examples showing a side-by-side comparison of the MySQL version and the MongoDB version of everything from connecting to the database out to some more advanced queries.
voice your opinion now!
mongodb nosql mysql tutorial compare
PHPBuilder.com: Add NoSQL Data Storage to Your PHP Development with Redis
by Chris Cornutt April 29, 2010 @ 08:45:36
On PHPBuilder.com today there's a new tutorial that helps you integrate a tool from the the NoSQL movement - Redis - into your application. This tutorial shows you how to add this powerful, fast database as a general content store for your application.
NoSQL is all the rage for Web developers who are tired of building complex SQL. Redis, a NoSQL database server much like Cassandra or MongoDB, provides a powerful and speedy alternative to relational database servers for PHP developers. Redis is similar to Memcached in terms of speed, but the data isn't volatile. That means that when your server reboots, your Redis data will still be there. You can back it up too.
Installing the server for Redis is easy (if you use a package management system) and getting up and running with PHP is as easy as using one of the PHP connection libraries out there like Rediska. In his example he shows one of the most basic operations - storing string values, appending to them and pulling them back out based on their unique key.
voice your opinion now!
tutorial redis nosql data storage
|
Community Events
Don't see your event here? Let us know!
|