Skip to content

LabTechUDF/shared-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serviços Acessíveis Internamente na Cluster

Infrastructure

We use Docker to deploy a local Redis server for caching, aiming to accelerate response times and thereby improve the overall user experience.

Why use Redis Cache?

  • High performance: by operating entirely in memory, it delivers responses in microseconds, significantly speeding up access to frequently used data.

  • Flexible data models: supports lists, hashes, sorted sets, and more, enabling implementations ranging from simple caching to counters, queues, and geolocation.

  • Automatic expiration: with per-key TTL, you set expiration times and ensure outdated information is removed effortlessly.

  • Optional persistence: combine speed with safety by enabling snapshots (RDB) or append‑only files (AOF) to write data to disk.

  • Scalability and high availability: with Sentinel for failover and Cluster for data partitioning, Redis scales reliably with your system.

  • Easy to use with Docker: the official lightweight image and Compose configuration make setup instant and reproducible in any environment.

Why use Docker?

  • Reproducibility: Identical environment on every machine, eliminating “it works on my machine” issues.

  • Isolation: Prevents version and dependency conflicts on the host OS.

  • Declarative Configuration: Everything defined in docker-compose.yml—version, persistence, healthchecks, and restart policies.

  • Clean Teardown: docker compose down -v removes all resources without leaving residues.

  • CI/CD Friendly: Automatically brings up Redis in your pipelines for integrated testing.

  • Network Portability: Services communicate by container name, without relying on fixed IPs.

  • Security: Containers are isolated with resource and network policies.

How to Use

  1. Install Docker Desktop (if you haven’t already).

  2. Open a terminal in this directory.

  3. Run the following command to start Redis in detached mode:

    docker compose up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •