Standard Search
About 10 results
https://rednafi.com/go/hoist-wire-plumb/ · 2 May 2026
Four of the five steps in every unary RPC handler are wire plumbing. Pin the service function signature and they fit in one generic adapter per transport.
https://rednafi.com/go/repo-txn-uow/ · 21 Mar 2026
Decoupling business logic from storage in Go, adding transaction support without leaking SQL details, and coordinating atomic writes across multiple repositories using a unit of work.
https://rednafi.com/go/gateway-pattern/ · 3 Aug 2025
Separate business logic from external service calls using the Gateway pattern. Apply dependency inversion and interface segregation in Go.
https://rednafi.com/go/circuit-breaker/ · 6 Oct 2024
Build a production-ready circuit breaker in Go from scratch with closed, open, and half-open states to prevent cascading failures.
https://rednafi.com/misc/notes-on-event-driven-systems/ · 21 Sep 2024
Deep dive into event-driven architecture patterns. Learn publish-subscribe, CQRS, outbox pattern, eventual consistency, and handling microservice coupling.
https://rednafi.com/go/strategy-pattern/ · 17 Feb 2024
Replace inheritance with the Strategy pattern in Go using interfaces. Achieve composable, testable code without class hierarchies.
https://rednafi.com/go/configure-options/ · 5 Sep 2023
Compare three Go option patterns: exposed structs, option constructors, and functional options. Learn when to use each for clean APIs.
https://rednafi.com/python/escape-template-pattern/ · 1 Jul 2023
Replace inheritance-based template pattern with composition and Protocol types to create cleaner, testable Python code without namespace pollution.
https://rednafi.com/python/caching-connection-objects/ · 16 Mar 2022
Learn efficient patterns for caching database connection objects in Python without import-time side effects or lru_cache complexity.
https://rednafi.com/python/proxy-pattern/ · 16 Jun 2020
Learn the proxy design pattern in Python to add access control, caching, and validation layers without modifying core functionality.