Continuous Integration – CircleCI

What Is Continuous Integration? Continuous Integration Basically, Continuous Integration means multiple developers pushing small, frequent changes to a shared repository or ‘master’. They are integrating changes continuously, rather than periodically, and thus–ta da!–Continuous Integration. There’s a lot out there on CI best practices you can adhere to, but I’d say one of the most important …

Continue reading

AMQP – RabbitMQ part 2

What is Message Queueing Message queuing gives you a mechanism to allow an application to asynchronously send a message to a receiver. This means that the sender and receiver do not need to interact with the message at the same time. A message is sent to a queue where it is stored until the receiver …

Continue reading

Hacking with PHP

Don’t think that using references will lower your RAM usage Objects are always copied by reference in PHP 5, which means that copying even the most complex object is instantaneous and essentially free in terms of memory usage. Furthermore, PHP makes extensive use of “copy-on-write”, which means taking ten copies of the same array is …

Continue reading

Secure Your REST API

API Key Mechanism The SERVER and CLIENT share 2 values: a public and private key. The public key can be known by more people, that’s fine. The private key CANNOT. It must only be known by the server and the client. When the client makes a request to the server, it sends along 2 important …

Continue reading

[MongoDB] CRUD

CRUD Concepts Atomicity: write operation is atomic on the level of a single document, even if the operation modifies multiple embedded documents within a single document. $isolated Operator: This ensures that no client sees the changes until the write operation completes or errors out. $isolated does not work with sharded clusters: An isolated write operation does not …

Continue reading

MongoDB – Philosophy and Features & Tools & Storage Engines

Philosophy and Features Availability: MongoDB maintains multiple copies of data called replicasets using native replication Security: Authentication.Authorization.Auditing.Encryption. Flexible Data Model:  MongoDB’s document data model makes it easy for you to store and combine data of any structure, without giving up sophisticated validation rules Multi-Datacenter Scalability: MongoDB can be scaled within and across geographically distributed data centers, providing …

Continue reading

MongoDB – Sharding

Concepts Sharding: Sharding is a method for distributing data across multiple machines Sharded Cluster consists of the following components: shard, mongos, config servers Shard: Each shard contains a subset of the sharded data. Each shard can be deployed as a replica set. mongos: The mongos acts as a query router, providing an interface between client …

Continue reading