Please enable JavaScript.
Coggle requires JavaScript to display documents.
Microservice Database - Coggle Diagram
Microservice Database
No-SQL DB
-
-
don't provide ACID guarantees. Thus, Transactions cant be possible
No-SQL Document DB
-
-
-
Easily scalable. Content Mgmt and storing catalogs, MongoDB and Cloudant
No-SQL Key-Value DB
-
Session oriented applications e.g., Storing customer basket data
Redis, Amazon DynamoDB, Oracle NoSQL DB
No-SQL Column-Based DB
-
-
-
Apache Cassandra, HBase or DynamoDB
No-SQL Graph based DB
-
-
Fraud Detection, Social Networking and Recommendation engines
OrientDB, Neo4j, Amazon Neptune
-
-
DB Patterns
-
-
Instagram
uses PostgreSQL Relational and Cassandra No-SQL. RabbitMQ and Django (python). Cassandra is enabled with auto-sharding feature. used feeds and messaging data is stored in No-SQL
Event-Sourcing Pattern
The write operations/Events are stored on the Event Store DB. Which are published to Event Bus and eventual consistency is followed to update the DB.
-
Transactions
-
Saga Pattern
Coreography
All services are connected on Message Broker and all services perform db activity and report back to Broker. Final Update is performed based on the responses.
-
Outbox Pattern
Create a table called Outbox. Whenever Transaction is complete, add record to outbox in same transaction. Publish this to message broker using a service.
-