Posts

Showing posts with the label MongoDB

Setup MongoDB statefulset on AWS Fargate

Image
Hi everyone I am Manshu Sharma and today we will see how can we deploy the mongoDB on AWS fargate as a  statefulset  with help of the mongoDB community operator but before we start let's have a quick overview of two important terms statefulset,   stateful application . What actually statefulset is in Kubernetes? StatefulSet is a Kubernetes resource used to manage stateful applications and It manages the scaling , ordering and uniqueness of each pod. It requires headless service and we are responsible for creating this service. What actually is stateful applications? Stateful applications are those programs that save client data from the activities of one session for use in the next session. Consider it as an ongoing periodic conversation with the same person. Some examples of stateful applications are MySQL,    MongoDB, FTP server,  Redis Cache, Kafka  and any Login service that stores client authentication data on the server, labelling clients...

MongoDB CheetSheet [In Progress]

This guide includes an introduction to MongoDB, a glossary of terms and lists of commonly used MongoDB commands with example. So here we go,  Introduction Mongodb is a non-relational database which means it does not use the tabular schema of rows and columns found in most traditional database systems like MySql.  The second thing about mongodb is that it stores data in a key-value pair.  The third thing about the mongodb is that the attribute _id which is unique and it is automatically created by Mongodb so chill  😎 MongoDB commands Create Database:   use <Database Name> Create Collection:  db.createCollection(<"Name">,{<Option>}) Insert One document in collection:  db.<Collection-Name>.insertOne([{<document>}]) Insert Many Documnets in Collection:  db.<Collection-Name>.insertMany([{<document1>},{<document2>}]) Find a particular row: db.getCollection("<Col...

Popular posts from this blog

MySQL Multi Source Master Slave Replication using GTID

Setting Up PostgreSQL Logical Replication with Docker Compose

Regex 101: An Introduction to Regular Expressions for Developers