💻
Software Engineering Notes
  • Introduction
  • Event-Sourcing
  • CQS and CQRS
  • Domain-Driven Design
    • Overview
    • Business Domain
    • Subdomain
    • Bounded Context
      • Interaction Between Contexts
    • Layers
      • Domain Layer
      • Application Layer
      • Infrastructure Layer
  • Database
    • In-Memory (Redis)
    • Search Engine (Elasticsearch)
    • Column-Oriented (Cassandra)
    • Document-Oriented (MongoDB)
  • Messaging
    • Brokers
      • Kafka
  • Race Condition
  • Concurrency vs Parallelism
  • API Architectural Styles
    • gRPC
  • Language & Framework Specific Notes
    • Go (Golang)
Powered by GitBook
On this page
  1. Database

In-Memory (Redis)

PreviousDatabaseNextSearch Engine (Elasticsearch)

Last updated 1 year ago

  • In-memory store

  • Fast (because it uses memory instead of disk)

  • Usually it is not used as the main datastore

While it is usually used for cache, but you can also use it for other stuff such as distributed locking (redlock).

To read more about redlock:

(more about distributed lock later)

https://redis.io/docs/manual/patterns/distributed-locks/
https://dev.to/lazypro/explain-redlock-in-depth-31jj