MongoDb

Distributed locks with MongoDB: renewing (part 3)

In the previous parts of this article we have seen how to use MongoDB to acquire a lock for a program which must run as a single instance at any time on your servers. However, long-lived locks are sometimes dangerous for...

read more by Giorgio Sironi in Developers

Distributed locks with MongoDB: releasing (part 2)

In the previous article of this mini-series, we saw how to atomically acquire a lock through a MongoDB collection *unique* index in order to ensure mutual exclusion between multiple copies of a program

read more by Giorgio Sironi in Developers

Distributed locks with MongoDB: acquiring (part 1)

"Singleton" processes such as cron jobs must usually run in isolation in our application, without multiple copies of them being started even if the code is deployed on several machines without shared resources

read more by Giorgio Sironi in Developers

5-minute MongoDB profiling

MongoDB has a bundled query profiler that can be run in a development environment or even on production databases. As it is customary for MongoDB, the API exposed by the profiler is a collection, which is composed of o...

read more by Giorgio Sironi in DevOps

Configuring the PHP MongoDB driver for high availability

MongoDB replica sets are composed of a primary server and one or more secondaries that act as an hot stand by. In case the primary server of a replica set goes down due to a crash or a machine failure, an election take...

read more by Giorgio Sironi in Developers

Geospatial queries on Mongodb

Indexing geo-spatial data is a killer feature provided by MongoDb. This function, based on indexes, can be used to search the database for queries such as: Which elements are included within a given range of coordinate...

read more by Antonio Pessolano in Developers

cloudparty

Follow Us