When launching a new web application, modern developers are immediately nudged toward managed cloud infrastructure: AWS RDS for PostgreSQL ($30–$80/mo), Upstash or Redis Cloud ($15–$30/mo), and Amazon S3 ($5–$20/mo plus egress fees). Before your application acquires its first 100 users, your…
A semantic cache in Redis is the cheapest way to cut AI API costs in production, and it is also the easiest way to serve a confidently wrong answer to a customer who asked something slightly different. I have built both versions: the one that saved a company five figures a year, and the one that…
Practical Guide to Redis Distributed Locking: Preventing Duplicate Webhook Execution During Timeouts System Architecture and Mutual Exclusion Design When integrating with external payment providers or third-party services, webhook delivery timeouts often trigger automatic retries. Without proper…
O Azure Container Apps resolve boa parte do que dói em levar microsserviços para a nuvem: não há cluster para administrar, o ingress é gerenciado e cada app recebe um nome resolvível dentro do ambiente. Para um ecossistema multiagente, porém, essas facilidades vêm com regras próprias que quebram o…
Every small product eventually grows the same little subsystem: one-time invite links . A teammate clicks "Invite", we generate a token, send a URL, and the link must work exactly once and stop working after seven days. It also has to be auditable — "who invited whom, and when was the link used?" —…
You have a hardened VPS (Article #1). Now you need a production-ready Docker Compose stack that you can drop in and run. This template gives you: PostgreSQL with proper persistence, healthchecks, and backup Redis for caching/sessions with persistence Nginx reverse proxy with SSL termination (auto…
In redis-py 8.1.0, retry_on_timeout=False does not turn retries off: every client retries up to 10 times on TimeoutError by default, so one INCR that hit a 0.5 s socket timeout returned 2 and left the counter at 2. For writes that must not run twice, give the client retry=Retry(NoBackoff(), 0) or…
Introduction Building a modern e-commerce backend involves more than developing REST APIs and connecting a database. As an application grows, handling asynchronous operations, managing frequently accessed data, and understanding distributed infrastructure become equally important. While developing…
📝 Originally published (in Japanese) at forge.workstyle.tech . TL;DR The DB admin password and Redis password were stored in plaintext in the infrastructure configuration repository history. DB and Redis are services that applications connect to. I kept the history unchanged and rotated the…