AI · PERFORMANCE
Prompt caching: prefix stability is your cost model
Why the order of the things you put in a prompt decides your latency and your bill, and the small habits that quietly break caching.
Pedro Pereira
27 Oct 2026
3 min read
ARCHITECTURE · RELIABILITY
Idempotency keys: storage, races and replaying the response
An idempotency key is easy to describe and easy to implement wrong. What to store, what to do when two requests with the same key arrive together, and what happens when the first one crashes halfway.
Pedro Pereira
22 Oct 2026
4 min read
DATABASES · ARCHITECTURE
Write skew, snapshot isolation and what SERIALIZABLE actually catches
The anomaly that snapshot isolation allows, why it passes every test you write, and the three ways to fix it: serializable with retries, locking the right rows, or materializing the conflict.
Pedro Pereira
19 Oct 2026
6 min read
CI/CD · SECURITY · SUPPLY CHAIN
GitHub Actions: pull_request_target, OIDC and SHA pinning
Four small workflow changes that close most of the serious holes in a typical GitHub Actions setup: untrusted checkouts, script injection, long-lived cloud secrets and mutable action tags.
Pedro Pereira
14 Oct 2026
5 min read
AI · SECURITY
Prompt injection through tool results and why agents need privilege separation
The dangerous prompt injection is not what the user types, it is what the agent reads. How the confused deputy problem shows up in LLM agents and which designs actually limit the damage.
Pedro Pereira
09 Oct 2026
8 min read
INFRASTRUCTURE · KUBERNETES · PERFORMANCE
CPU limits, CFS throttling and the latency you cannot see in averages
A container can be throttled while its CPU graph shows 20% usage. Here is how CPU limits really work, how to measure throttling, and what it does to a multi-threaded runtime.
Pedro Pereira
07 Oct 2026
7 min read
SECURITY · SUPPLY CHAIN · .NET
Dependency confusion and NuGet package source mapping
How an attacker can get their package installed instead of your internal one, why it works, and the NuGet feature that closes the gap.
Pedro Pereira
01 Oct 2026
5 min read
DATABASES · PERFORMANCE
Postgres HOT updates, fillfactor and the hidden cost of indexes
Why adding one index to a frequently updated table can multiply your write cost, and how heap-only tuples and fillfactor decide whether that happens.
Pedro Pereira
28 Sep 2026
4 min read
ARCHITECTURE · DATABASES · RELIABILITY
Transactional outbox or CDC: choosing how events leave your database
The dual-write problem, the outbox pattern that solves it, and the real trade-off between a polling relay and log-based change data capture.
Pedro Pereira
24 Sep 2026
6 min read
SECURITY · INFRASTRUCTURE
SSRF against cloud metadata and why the IMDSv2 hop limit matters
Why a plain SSRF bug turns into stolen cloud credentials, what IMDSv2 actually changes, and why the default hop limit of 1 is doing more work than most people realize.
Pedro Pereira
16 Sep 2026
7 min read
ARCHITECTURE · RECOVERY · RELIABILITY · UX
Load shedding and Throttling impact in serving capacity
Succinct explanation of Load shedding and Throttling and their relevance/impact in day to day use.
Pedro Pereira
09 Sep 2026
9 min read