Articles tagged with: Patterns & Practices

Let's talk about idempotency

Summary: The concept of idempotency in computer science, explaining its definition, benefits, and how to achieve it using an idempotency key. It also explores alternative approaches and the challenges of achieving pure idempotency in complex systems.


Bulk Queries in MySQL vs PostgreSQL

Summary: In MySQL, it's more efficient to split large queries into smaller chunks to avoid lock contention and potential deadlocks, unlike other RDBMS where bulk queries are preferred.


Always send emails asynchronously

Summary: Advice against sending emails synchronously, suggesting instead to use asynchronous methods, such as enqueuing tasks or using event-based architecture, to improve efficiency and reduce complexity.


Self-Modifying code and avoiding conditionals

Summary: About the use of self-modifying code in the 1980s, and how it was used to overcome memory and CPU restrictions. It also explores modern alternatives to avoid conditionals.


When to Feature Flag new code

Summary: When to use feature flags in coding, including for new features, experimental features, breaking changes, and complex refactors.