# Muhammet Şafak > Personal brand site of Muhammet Şafak — software engineer working on systems architecture, engineering research and AI systems engineering. The portfolio of an engineer building software since 2008, and a development journal spanning from 2014 to today. The canonical source for the architecture manifesto and system notes is the Engineering section of this site (https://muhammetsafak.com/engineering/). This site is also the canonical source for identity, portfolio, books, research records and expertise pages. The blog is a hands-on development journal: posts on PHP, Laravel, JavaScript, TypeScript, Go and web development that reflect a developer’s growth over the years, plus reflections on the software career. The site also holds open-source projects, books, research records, expertise pages and professional résumé information. Türkçe sürüm / Turkish version: https://muhammetsafak.com/tr/llms.txt ## Identity Name: Muhammet Şafak Role: Software Engineer Email: info@muhammetsafak.com Canonical profiles (the profile itself, not a short link; the same person as the owner of this site): - [GitHub](https://github.com/muhammetsafak) - [LinkedIn](https://www.linkedin.com/in/safakix) - [X](https://x.com/safakix) - [YouTube](https://www.youtube.com/@muhammetsafak) - [Medium](https://medium.com/@muhammetsafak) - [dev.to](https://dev.to/muhammetsafak) ## Site - [Home](https://muhammetsafak.com/) - [About](https://muhammetsafak.com/about.md): Who Muhammet Şafak is and what he does. (HTML: https://muhammetsafak.com/about/) - [Tan](https://muhammetsafak.com/tan.md): Tan, the mascot of muhammetsafak.com, is a beaver that carries the site’s architecture, debugging, research, and teaching identity across four scenes at work. (HTML: https://muhammetsafak.com/tan/) - [Blog](https://muhammetsafak.com/blog.md): All blog posts. (HTML: https://muhammetsafak.com/blog/) - [Engineering](https://muhammetsafak.com/engineering.md): Notes, system write-ups and essays on backend and systems engineering, plus developer tools that run in the browser. (HTML: https://muhammetsafak.com/engineering/) - [Portfolio](https://muhammetsafak.com/portfolio.md): Projects. (HTML: https://muhammetsafak.com/portfolio/) - [Expertise](https://muhammetsafak.com/expertise.md): The roles I work in and the technologies behind them. (HTML: https://muhammetsafak.com/expertise/) - [Labs](https://muhammetsafak.com/labs.md): Records by development focus; each states what question the software started from, how it was built, and whether it became a product or stopped. (HTML: https://muhammetsafak.com/labs/) - [Research](https://muhammetsafak.com/research.md): Measurements, analyses, surveys and reviews; every record states its method, environment and the date it is valid for. (HTML: https://muhammetsafak.com/research/) - [Just Ask](https://muhammetsafak.com/just-ask.md): Questions from visitors, answered one by one. (HTML: https://muhammetsafak.com/just-ask/) - [Books](https://muhammetsafak.com/books.md): Free technical books and their series; each book states its thesis, chapters and language editions. (HTML: https://muhammetsafak.com/books/) - [Résumé](https://muhammetsafak.com/resume.md): Experience, education and skills. (HTML: https://muhammetsafak.com/resume/) - [Contact](https://muhammetsafak.com/contact.md): Email and profiles. (HTML: https://muhammetsafak.com/contact/) A plain Markdown version of every post, question, Labs/Research record and project is available by appending `.md` to its URL — for example https://muhammetsafak.com/blog/is-php-dead-2026-the-data.md About, Résumé, Portfolio, Blog, Just Ask, Labs, Research, Expertise and Books in one file (not a map — the text itself): https://muhammetsafak.com/llms-full.txt The Engineering section’s full text is not in that file; it is in parts (index of the parts): https://muhammetsafak.com/engineering/llms-full.txt ## Projects This whole section as plain Markdown: https://muhammetsafak.com/portfolio.md - [BabelQueue: a language-agnostic queue standard](https://muhammetsafak.com/portfolio/babelqueue.md): [ongoing] A frozen JSON envelope that lets PHP, Python, Go and Node.js share one queue without serialization lock-in. Runs on Redis and RabbitMQ. — Role: Founder & Developer — Class: Flagship — Tier: Main Focus — Stack: JSON, Redis, RabbitMQ, PHP, Python, Go, Node.js, Java, .NET (HTML: https://muhammetsafak.com/portfolio/babelqueue/) - [CommitBrief: local LLM code review CLI](https://muhammetsafak.com/portfolio/commitbrief.md): [ongoing] A provider-agnostic Go CLI that reviews git diffs without leaving the terminal or leaking the diff: providers include Anthropic, OpenAI, Gemini and Ollama. — Role: Founder & Developer — Class: Flagship — Tier: Main Focus — Stack: Go, Cobra, go-git, Anthropic Claude, OpenAI, Google Gemini, Ollama, YAML, Goreleaser, Astro, Tailwind CSS (HTML: https://muhammetsafak.com/portfolio/commitbrief/) - [Ragmux: a self-hosted AI gateway with RAG](https://muhammetsafak.com/portfolio/ragmux.md): [ongoing] An open-source Go gateway between your application and LLM providers that exposes one OpenAI-compatible API and adds context from your own documents. — Role: Founder & Developer — Class: Flagship — Tier: Main Focus — Stack: Go, PostgreSQL, pgvector, ParadeDB, Docker, OpenAI, Anthropic Claude, Google Gemini, DeepSeek, Ollama, Prometheus, OpenTelemetry, Cohere, Voyage AI (HTML: https://muhammetsafak.com/portfolio/ragmux/) - [Contextator: an MCP documentation server](https://muhammetsafak.com/portfolio/contextator.md): [ongoing] An open-source, multi-tenant documentation server that keeps your projects' documents on your own machine and gives each one its own MCP endpoint. — Role: Founder & Developer — Class: Flagship — Tier: Main Focus — Stack: TypeScript, Node.js, Fastify, PostgreSQL, pgvector, Drizzle ORM, MCP, transformers.js, Docker, Notion API, Vitest, Biome (HTML: https://muhammetsafak.com/portfolio/contextator/) - [QueryProxy: a SQL approval portal](https://muhammetsafak.com/portfolio/queryproxy.md): [ongoing] A self-hosted portal that puts ad-hoc production SQL behind approval, masking at write time and an immutable audit trail. — Role: Founder & Developer — Class: Flagship — Tier: Main Focus — Stack: PHP, Laravel, Livewire, Blade, Tailwind CSS, Vite, CodeMirror, phpMyAdmin SQL Parser, Pest, Docker, GitHub Actions, PostgreSQL, MySQL, MariaDB, SQL Server, SQLite (HTML: https://muhammetsafak.com/portfolio/queryproxy/) - [Devrazzi: engineering intelligence radar](https://muhammetsafak.com/portfolio/devrazzi.md): [ongoing] An engineering radar that scores release and vulnerability announcements with a formula and explains them in Turkish; web only, Turkish only. — Role: Founder & Developer — Class: Publication — Tier: Active Development — Stack: Laravel, PHP, PostgreSQL, RabbitMQ, Redis, Livewire, Filament, Anthropic Claude, OpenAI, Google Gemini, DeepSeek (HTML: https://muhammetsafak.com/portfolio/devrazzi/) - [academia.sh: theory and the field in one lesson](https://muhammetsafak.com/portfolio/academia.md): [ongoing] A learning platform with free, no-signup lessons that never separates theory from a real field problem; live with a curriculum-course-topic-lesson tree. — Role: Founder & Author — Class: Publication — Tier: Active Development — Stack: Laravel, PHP, Livewire, Blade, Tailwind, PostgreSQL, Redis, Filament, Pest (HTML: https://muhammetsafak.com/portfolio/academia/) - [Garajdaş: a car community built by make-model](https://muhammetsafak.com/portfolio/garajdas.md): [ongoing] A community platform with 97 API tests: every make-and-model has its own club, web and mobile share one schema; MVP phases closed, live now. — Role: Founder & Developer — Class: Publication — Tier: Active Development — Stack: Laravel, PHP, PostgreSQL, Next.js, React, Tailwind CSS, Expo, React Native, TypeScript (HTML: https://muhammetsafak.com/portfolio/garajdas/) - [Qurandia: a hadith source matched by fingerprint](https://muhammetsafak.com/portfolio/qurandia.md): [ongoing] A free, open resource centred on the Quran and hadith that matches hadith datasets by the text's fingerprint rather than a number; live now. — Role: Founder & Developer — Class: Publication — Tier: Active Development — Stack: Laravel, PHP, Livewire, Alpine.js, Tailwind, PostgreSQL, Redis, Horizon, Filament, Pest (HTML: https://muhammetsafak.com/portfolio/qurandia/) - [Parantaj: personal and business finance platform](https://muhammetsafak.com/portfolio/parantaj.md): [ongoing] Income-expense tracking, budget planning and multi-account management on web, iOS and Android — all three fed by one API. — Role: Owner — Class: SaaS Product — Tier: Active Development — Stack: PHP, Laravel, Go, PostgreSQL, Redis, RabbitMQ, Expo, React Native, Vite, iOS, Android (HTML: https://muhammetsafak.com/portfolio/parantaj/) - [SignalLock: Bluetooth proximity lock](https://muhammetsafak.com/portfolio/signallock.md): [ongoing] A privacy-focused app that locks your computer when you walk away, using a Bluetooth device you already carry. Runs on macOS, Windows and Linux. — Role: Owner — Class: Older / Hobby Project — Tier: On Demand — Stack: Rust, Slint, btleplug, Tokio (HTML: https://muhammetsafak.com/portfolio/signallock/) - [Regnarium: a 4X that ends in one sitting](https://muhammetsafak.com/portfolio/regnarium.md): [ongoing] A dice-free strategy game that resolves a 480-hex map in at most 60 turns, played offline in the browser with no account. — Role: Designer & Developer — Class: Older / Hobby Project — Tier: On Demand — Stack: TypeScript, Next.js, React, React Native, Expo, Vitest, MDX, IndexedDB, CSS Modules (HTML: https://muhammetsafak.com/portfolio/regnarium/) - [sakinkal: evidence-based crisis preparedness](https://muhammetsafak.com/portfolio/sakinkal.md): [ongoing] An offline-accessible, ad-free resource that strips crisis readiness in Turkey of fear and hype. 'No panic, just preparedness.' — Role: Founder & Editor — Class: Publication — Tier: On Demand — Stack: Astro, Tailwind CSS, TypeScript, Markdown, Pagefind, Cloudflare Pages (HTML: https://muhammetsafak.com/portfolio/sakinkal/) - [TB1MSK: amateur radio station and blog](https://muhammetsafak.com/portfolio/tb1msk.md): [ongoing] My amateur radio station based in Çatalca/İstanbul (KN41ff): FM, repeaters and APRS on VHF/UHF, plus Turkish writing on emergency comms. — Role: Operator & Developer — Class: Publication — Tier: On Demand — Stack: Astro, TypeScript, Markdown, Cloudflare Pages (HTML: https://muhammetsafak.com/portfolio/tb1msk/) - [InitPHP: 30+ modular PHP libraries](https://muhammetsafak.com/portfolio/initphp.md): [ongoing] 30+ modular PHP packages — Router, Database, Cache, Mailer, Socket — plus the minimalist MVC framework Framework3, MIT-licensed on Packagist. — Role: Founder & Developer — Class: Older / Hobby Project — Tier: Minimal Maintenance — Stack: Composer, Git, PHPUnit, PHP (HTML: https://muhammetsafak.com/portfolio/initphp/) - [Looplio: recurring maintenance automation](https://muhammetsafak.com/portfolio/looplio.md): [ongoing] Turns repeating tasks, maintenance and checks into reusable templates and auto-generated checklists. Web, iOS and Android. — Role: Owner — Class: SaaS Product — Tier: Minimal Maintenance — Stack: PHP, Laravel, Go, PostgreSQL, Redis, Expo, React Native, iOS, Android (HTML: https://muhammetsafak.com/portfolio/looplio/) - [SilkWard: a deterministic puzzle](https://muhammetsafak.com/portfolio/silkward.md): [completed] An offline puzzle game played on a node-and-edge board with no dice and no reflexes, running on web and mobile at once from a single TypeScript core. — Role: Designer & Developer — Class: Older / Hobby Project — Tier: Minimal Maintenance — Stack: TypeScript, Next.js, React, Expo, React Native, Vitest (HTML: https://muhammetsafak.com/portfolio/silkward/) - [SysAdmin Crisis: a terminal that really parses](https://muhammetsafak.com/portfolio/sysadmincrisis.md): [completed] An offline night-shift simulation where 29 gamified Unix commands are actually parsed, running on web and mobile from a single game engine. — Role: Designer & Developer — Class: Older / Hobby Project — Tier: Minimal Maintenance — Stack: TypeScript, Next.js, React, Expo, React Native, Zustand (HTML: https://muhammetsafak.com/portfolio/sysadmincrisis/) - [Erkekse: an online magazine for men](https://muhammetsafak.com/portfolio/erkekse.md): [completed] A subscription-based online magazine on fashion, style, grooming and health, which I published on WordPress between 2016 and 2022. — Role: Founder — Class: Publication — Tier: Archived — Stack: PHP, WordPress, MariaDB, Linux (HTML: https://muhammetsafak.com/portfolio/erkekse/) ## Expertise — Roles Every role and technology page, with its description, as plain Markdown: https://muhammetsafak.com/expertise.md - [Software Architect](https://muhammetsafak.com/expertise/architecture.md): (HTML: https://muhammetsafak.com/expertise/architecture/) - [AI Systems Engineer](https://muhammetsafak.com/expertise/ai-systems.md): (HTML: https://muhammetsafak.com/expertise/ai-systems/) - [Backend Developer](https://muhammetsafak.com/expertise/backend.md): (HTML: https://muhammetsafak.com/expertise/backend/) - [DevOps & Infrastructure Engineer](https://muhammetsafak.com/expertise/devops.md): (HTML: https://muhammetsafak.com/expertise/devops/) ## Labs — Development Every Labs record, with its details, as plain Markdown: https://muhammetsafak.com/labs.md - [AI and AI-assisted development](https://muhammetsafak.com/labs/focus/ai-development.md): Where the LLM enters the development loop: code review, static analysis mixed with models, deterministic filters instead of prompts. (HTML: https://muhammetsafak.com/labs/focus/ai-development/) - [Distributed systems & messaging](https://muhammetsafak.com/labs/focus/distributed-systems.md): Queues, outbox, idempotent consumption and language-agnostic message contracts: the distributed systems experiments carried out in the labs. (HTML: https://muhammetsafak.com/labs/focus/distributed-systems/) - [Developer tooling & CI](https://muhammetsafak.com/labs/focus/developer-tooling.md): CLIs, architecture boundaries enforced at build time and automation that measures code health: the developer tooling experiments in the labs. (HTML: https://muhammetsafak.com/labs/focus/developer-tooling/) - [Automation & data pipelines](https://muhammetsafak.com/labs/focus/automation-data.md): Scheduled jobs, integration pipelines and operational data flows: collection, transformation and timing, as explored in the labs experiments. (HTML: https://muhammetsafak.com/labs/focus/automation-data/) ## Research — Records Every Research record — finding and confidence; metrics and method in each record's twin — as plain Markdown: https://muhammetsafak.com/research.md - [Language & runtime](https://muhammetsafak.com/research/program/language-runtime.md): What version upgrades, compiler and runtime settings change on the same workload: JIT, opcache, GC, memory behaviour and the first request after a deploy. (HTML: https://muhammetsafak.com/research/program/language-runtime/) - [Database & queries](https://muhammetsafak.com/research/program/database.md): What index strategy, query plans and connection handling cost once the data volume is real — schema and migration decisions included. (HTML: https://muhammetsafak.com/research/program/database/) - [Service & load](https://muhammetsafak.com/research/program/service-load.md): Latency distribution, saturation and queue behaviour under load — p95/p99, not the mean; backpressure, circuit breakers and capacity per core included. (HTML: https://muhammetsafak.com/research/program/service-load/) - [Tooling comparison](https://muhammetsafak.com/research/program/tool-comparison.md): The measurable difference between two tools doing the same job: build time, output size, memory and the developer loop, ecosystem scan included. (HTML: https://muhammetsafak.com/research/program/tool-comparison/) - [Frontend performance](https://muhammetsafak.com/research/program/frontend-performance.md): Shipped JS, first paint and interaction delay: how many kilobytes a convenience costs the visitor, browser support and the test setup included. (HTML: https://muhammetsafak.com/research/program/frontend-performance/) **Cost & resources** — The side of a decision that reaches the invoice: CPU hours, bandwidth, storage and true cost per request; the measurable price of an architectural choice. ## Books The whole section as plain Markdown: https://muhammetsafak.com/books.md - [The Unreliable Systems Trilogy](https://muhammetsafak.com/books/series/the-unreliable-systems-trilogy.md): Three free books on one idea: reliable systems are not built from reliable parts but around the parts that fail — access, events and AI agents. (HTML: https://muhammetsafak.com/books/series/the-unreliable-systems-trilogy/) - [The Production Database Access Guide](https://muhammetsafak.com/books/production-database-access-guide.md): [downloadable] A practical guide to deciding who and what can reach a production database, how, for how long, and with what record left behind. — Scope: Identities, credentials, just-in-time access, mediated execution and audit — Series: The Unreliable Systems Trilogy (HTML: https://muhammetsafak.com/books/production-database-access-guide/) - [Designing Reliable Event-Driven Systems](https://muhammetsafak.com/books/designing-reliable-event-driven-systems.md): [downloadable] A practical guide to the patterns that keep event-driven systems correct when networks, brokers, deploys and people misbehave. — Scope: Messaging, retries, idempotency, outbox, ordering and schema evolution — Series: The Unreliable Systems Trilogy (HTML: https://muhammetsafak.com/books/designing-reliable-event-driven-systems/) - [Engineering Reliable AI Agents](https://muhammetsafak.com/books/engineering-reliable-ai-agents.md): [downloadable] A practical guide to building AI agents that can be trusted in production: tools, authority, state, bounds and records, from design to incident review. — Scope: Tools, authority, state, bounds and records for agents in production — Series: The Unreliable Systems Trilogy (HTML: https://muhammetsafak.com/books/engineering-reliable-ai-agents/) ## Engineering — Notes, Systems, Essays, Tools Every piece on backend and systems engineering follows Context, Constraint, Approach, Pitfalls and Expiry. The whole section as plain Markdown: https://muhammetsafak.com/engineering.md — the full text in parts: https://muhammetsafak.com/engineering/llms-full.txt - [Upgrade Target Version: Two Dates, Not One](https://muhammetsafak.com/engineering/notes/upgrade-target-version.md): The newest PHP version doesn't set the target. Compare the candidate's security end with your next upgrade window, then with the chain's slowest link. (HTML: https://muhammetsafak.com/engineering/notes/upgrade-target-version/) - [Transactional Outbox: Dual-Write, Idempotent Consumers](https://muhammetsafak.com/engineering/systems/transactional-outbox-dual-write-and-idempotent-consumption.md): Closing dual-write with an outbox, suppressing the at-least-once repeats it creates, and encrypting the personal data inside the event. (HTML: https://muhammetsafak.com/engineering/systems/transactional-outbox-dual-write-and-idempotent-consumption/) - [Which Technical Debt You Pay, Which You Live With](https://muhammetsafak.com/engineering/essays/managing-technical-debt.md): Not all technical debt deserves paying off. Separating debt that charges interest from debt that sits quietly, and spending a limited budget where it counts. (HTML: https://muhammetsafak.com/engineering/essays/managing-technical-debt/) - [Base64 Encoder / Decoder](https://muhammetsafak.com/engineering/tools/base64.md): Encode and decode text as Base64, with a URL-safe variant and full UTF-8 support. Runs in your browser; your text is never sent anywhere. (HTML: https://muhammetsafak.com/engineering/tools/base64/) - [JSON Formatter](https://muhammetsafak.com/engineering/tools/json-formatter.md): Format JSON with 2-space, 4-space or tab indentation, or minify it; invalid JSON gets an error message. Runs in your browser; your data never leaves it. (HTML: https://muhammetsafak.com/engineering/tools/json-formatter/) - [Glossary](https://muhammetsafak.com/engineering/glossary.md): Backend and systems terms; every definition has its own link. (HTML: https://muhammetsafak.com/engineering/glossary/) - [Series](https://muhammetsafak.com/engineering/series/): Multi-part pieces, in reading order. ## Just Ask — Questions & Answers Visitors ask, the author answers one by one. Each entry is a self-contained page devoted to a single question. Every question as plain Markdown: https://muhammetsafak.com/just-ask.md ## Visuals — presentations and infographics Presentations and infographics drawn from the articles on this site. Listed here: the newest 8; the two links below hold the full lists (plain Markdown). Each line carries the visual’s address, its kind, a short description and the addresses of the articles on this site it is drawn from. - [Visuals — English](https://muhammetsafak.com/visuals.md): English presentations and infographics. (HTML: https://muhammetsafak.com/visuals/) - [Visuals — Turkish](https://muhammetsafak.com/tr/gorseller.md): Turkish presentations and infographics. (HTML: https://muhammetsafak.com/tr/gorseller/) - [The Evolution of PHP: From 5.5 to 8.6](https://muhammetsafak.com/visuals/i/php-evolution-from-5-5-to-8-6/): Infographic — Stop by stop, from generators to partial function application, what PHP gained in each release and how its… (Source: https://muhammetsafak.com/blog/traversing-large-datasets-with-php-55-generators-and-yield/ https://muhammetsafak.com/blog/php-5-6-new-features-variadic-functions-and-exponentiation-operator/ +14 more) - [Writing code got faster. Why didn't the work?](https://muhammetsafak.com/visuals/d/ai-bottleneck-and-the-cost-of-brownfield/): Presentation — AI didn't remove the bottleneck, it moved it: review, verification and integration. (Source: https://muhammetsafak.com/blog/fast-from-scratch-slow-in-a-live-system/ https://muhammetsafak.com/engineering/essays/ai-didnt-remove-the-bottleneck/) - [Go and PHP: capacity per core](https://muhammetsafak.com/visuals/i/capacity-per-core/): Infographic — Go, FrankenPHP and PHP-FPM on the same OAuth2 service: requests per core, CPU per request, PostgreSQL load… (Source: https://muhammetsafak.com/research/capacity-per-core-go-php-oauth2/) - [An invoice's reliability](https://muhammetsafak.com/visuals/d/an-invoices-reliability/): Presentation — From number collisions to dual-write, from duplicate delivery to determinism: how an invoice moves on… (Source: https://muhammetsafak.com/blog/from-dual-write-to-outbox-idempotent-consumption-and-field-encryption/ https://muhammetsafak.com/blog/resolving-invoice-number-collision-in-e-invoice-integration/ +3 more) - [Flaky tests: from 0.5% to 98%](https://muhammetsafak.com/visuals/i/flaky-tests-98-percent-red/): Infographic — If each of 800 tests fails for no reason 0.5% of the time, the suite is red on almost every run. (Source: https://muhammetsafak.com/engineering/essays/flaky-tests-and-determinism/) - [5 breaking points in data-intensive systems and the Laravel production stack](https://muhammetsafak.com/visuals/d/data-intensive-breaking-points-laravel-stack/): Presentation — Five breaking points from the working set to a separate data tier, the wrong diagnoses, and a Laravel… (Source: https://muhammetsafak.com/engineering/systems/data-intensive-systems-breaking-points/ https://muhammetsafak.com/engineering/systems/laravel-production-stack/) - [Which Git workflow? Gitflow, GitHub Flow, and trunk-based](https://muhammetsafak.com/visuals/i/git-workflow-decision-matrix/): Infographic — Three questions and a decision matrix for choosing between Gitflow, GitHub Flow, and trunk-based development… (Source: https://muhammetsafak.com/blog/git-in-production-a-senior-engineers-practical-guide/ https://muhammetsafak.com/engineering/essays/gitflow-vs-github-flow/ +1 more) - [From monolith to microservices: when, why, how](https://muhammetsafak.com/visuals/d/from-monolith-to-microservices/): Presentation — Why start with a modular monolith, what microservices cost, four measured signals that justify the move, and… (Source: https://muhammetsafak.com/engineering/essays/when-i-move-to-microservices/ https://muhammetsafak.com/engineering/essays/why-boring-architecture/ +1 more) ## Blog — featured posts Every featured post. The remaining posts are in the category archives and the blog twin. Every post listed as plain Markdown: https://muhammetsafak.com/blog.md - [The third MCP server was reasonable. The rest were not](https://muhammetsafak.com/blog/one-mcp-server-per-project-stops-scaling.md): MCP was the right answer for giving an agent a project's documentation. As the count grew, the servers themselves became the thing needing maintenance. (HTML: https://muhammetsafak.com/blog/one-mcp-server-per-project-stops-scaling/) - [You chose RAG. The real work starts now](https://muhammetsafak.com/blog/the-real-work-starts-after-you-choose-rag.md): RAG or fine-tuning gets answered everywhere. The three questions left after it — the key, the model choice, the budget — get answered nowhere. (HTML: https://muhammetsafak.com/blog/the-real-work-starts-after-you-choose-rag/) - [18,750 req/s: precise, repeated, and three times wrong](https://muhammetsafak.com/blog/precise-repeated-and-three-times-wrong.md): Two phases of the same run measured the same service three times apart. What caught the wrong one was not a better statistic but a second method. (HTML: https://muhammetsafak.com/blog/precise-repeated-and-three-times-wrong/) - [Production access sat with one person, and that person took a holiday](https://muhammetsafak.com/blog/production-access-sat-with-one-person.md): The only person with production database access went on holiday and diagnosis stopped. The need came down to four sentences; each became a design decision. (HTML: https://muhammetsafak.com/blog/production-access-sat-with-one-person/) - [Fast from scratch, slow in a live system: the real cost of brownfield in the age of agents](https://muhammetsafak.com/blog/fast-from-scratch-slow-in-a-live-system.md): Work an agent finishes in days takes a week in a system running for years: there the cost isn't producing code, it's finding and proving the rules. (HTML: https://muhammetsafak.com/blog/fast-from-scratch-slow-in-a-live-system/) - [Same message, different outcome: determinism in event-driven architecture](https://muhammetsafak.com/blog/same-message-different-outcome-determinism-in-event-driven-architecture.md): Why does the same message produce different outcomes in an event-driven system? The hidden inputs that break determinism — and four moves to win it back. (HTML: https://muhammetsafak.com/blog/same-message-different-outcome-determinism-in-event-driven-architecture/) - [From Dual-Write to Outbox: A Log of Idempotent Consumption and Field-Level Encryption](https://muhammetsafak.com/blog/from-dual-write-to-outbox-idempotent-consumption-and-field-encryption.md): Lost events pushed me to a transactional outbox and at-least-once delivery to idempotent consumption; then I encrypted GDPR fields at row level. (HTML: https://muhammetsafak.com/blog/from-dual-write-to-outbox-idempotent-consumption-and-field-encryption/) - [Vibe Coding vs AI-Assisted Development — and Why You Still Need a Senior](https://muhammetsafak.com/blog/vibe-coding-vs-ai-assisted-development.md): Vibe coding made shipping easier, but what someone without systems knowledge ships isn't what a senior steering the AI ships. Three levels. (HTML: https://muhammetsafak.com/blog/vibe-coding-vs-ai-assisted-development/) - [AI-assisted self-review — what it speeds up, where it falls short](https://muhammetsafak.com/blog/ai-self-review-what-it-speeds-up-where-it-falls-short.md): Not the 'why' but the 'how much': which workflow layers the tool plugs into, the bug patterns it keeps catching, and where it hits its limits. (HTML: https://muhammetsafak.com/blog/ai-self-review-what-it-speeds-up-where-it-falls-short/) - [Which Methodology for Which Project? — Notes from an 18-Year Developer](https://muhammetsafak.com/blog/which-methodology-for-which-project-decision-matrix.md): Waterfall, Agile, or Hybrid? Wrong question. A decision matrix from 18 years of production, three real cases, and a way out of methodology religion. (HTML: https://muhammetsafak.com/blog/which-methodology-for-which-project-decision-matrix/) - [Git in Production: A Senior Engineer's Practical Guide](https://muhammetsafak.com/blog/git-in-production-a-senior-engineers-practical-guide.md): From workflow selection to bug hunting with bisect, rebase discipline, worktrees, and signed commits — things I noticed after years of using Git. (HTML: https://muhammetsafak.com/blog/git-in-production-a-senior-engineers-practical-guide/) - [PHP Constants, Enums, and Readonly: One Decision Tree for 10 Tools](https://muhammetsafak.com/blog/php-constants-enums-readonly-decision-tree.md): From define to asymmetric visibility — a three-axis mental model and a concrete decision matrix for getting immutability right in modern PHP. (HTML: https://muhammetsafak.com/blog/php-constants-enums-readonly-decision-tree/) - [Building Applications with PHP in 2026: State of the Ecosystem](https://muhammetsafak.com/blog/building-applications-with-php-in-2026-state-of-the-ecosystem.md): The state of PHP in 2026: language maturity, ecosystem health, where the "it's dead" narrative comes from and where PHP is still the right choice. (HTML: https://muhammetsafak.com/blog/building-applications-with-php-in-2026-state-of-the-ecosystem/) - [PHP 8.5 is on the way: the maturing face of the language](https://muhammetsafak.com/blog/php-85-on-the-way-the-languages-maturing-face.md): PHP 8.5 isn't out yet, but reading through the proposals on the table reveals how a language evolves over more than a decade. (HTML: https://muhammetsafak.com/blog/php-85-on-the-way-the-languages-maturing-face/) - [PHP 8.4 is coming: property hooks and asymmetric visibility](https://muhammetsafak.com/blog/php-8-4-property-hooks-and-asymmetric-visibility.md): Property hooks and asymmetric visibility in PHP 8.4, how they work with interfaces and readonly, and how they change the way we model class properties. (HTML: https://muhammetsafak.com/blog/php-8-4-property-hooks-and-asymmetric-visibility/) - [Home Cloud Server: Raspberry Pi 5 Upgrade](https://muhammetsafak.com/blog/home-cloud-server-raspberry-pi5-upgrade.md): Upgrading a home cloud server to a Raspberry Pi 5: CasaOS, Nextcloud, RAID 10 storage, MariaDB, a firewall and Cloudflare Tunnel, step by step. (HTML: https://muhammetsafak.com/blog/home-cloud-server-raspberry-pi5-upgrade/) - [HTTP Basic Authentication](https://muhammetsafak.com/blog/http-basic-authentication.md): What is HTTP Basic Authentication, how does it work, and when should you use it? A practical breakdown of the oldest auth mechanism in the web stack. (HTML: https://muhammetsafak.com/blog/http-basic-authentication/) - [JWT Authentication: How It Works, When It Fits, and Common Pitfalls](https://muhammetsafak.com/blog/jwt-authentication-how-it-works.md): A practical look at JWT authentication — token structure, signing mechanics, and the trade-offs you need to understand before reaching for it. (HTML: https://muhammetsafak.com/blog/jwt-authentication-how-it-works/) - [Idempotency in APIs: Safely Repeating the Same Request](https://muhammetsafak.com/blog/idempotency-in-apis-safely-repeating-the-same-request.md): Designing API operations that produce no side effects when repeated; idempotency keys and practical implementation at the application layer. (HTML: https://muhammetsafak.com/blog/idempotency-in-apis-safely-repeating-the-same-request/) - [Laravel 11's New Slim Skeleton Structure](https://muhammetsafak.com/blog/laravel-11-slim-skeleton-structure.md): A look at Laravel 11's leaner skeleton, the defaults that were removed, and the concrete impact on everyday development workflows. (HTML: https://muhammetsafak.com/blog/laravel-11-slim-skeleton-structure/) - [Async Job Processing with Laravel Queue and Supervisor](https://muhammetsafak.com/blog/async-job-processing-with-laravel-queue-and-supervisor.md): How to set up asynchronous job queues in Laravel using the database driver, and keep workers running reliably in production with Supervisor. (HTML: https://muhammetsafak.com/blog/async-job-processing-with-laravel-queue-and-supervisor/) - [Designing Value Objects in Modern PHP](https://muhammetsafak.com/blog/designing-value-objects-in-modern-php.md): Embedding meaning into code instead of relying on primitives: why and how to design value objects in PHP, from an Email example to readonly immutability. (HTML: https://muhammetsafak.com/blog/designing-value-objects-in-modern-php/) - [MySQL Storage Engines: InnoDB vs MyISAM](https://muhammetsafak.com/blog/mysql-storage-engines-innodb-vs-myisam.md): A practical comparison of MySQL storage engines: the differences between InnoDB and MyISAM, their trade-offs, and which one to choose. (HTML: https://muhammetsafak.com/blog/mysql-storage-engines-innodb-vs-myisam/) - [Laravel Octane: the performance that comes with a persistent process](https://muhammetsafak.com/blog/laravel-octane-persistent-process-performance.md): How Laravel Octane removes per-request bootstrap overhead with a warm process, and what it costs: state leaking between requests and Swoole requirements. (HTML: https://muhammetsafak.com/blog/laravel-octane-persistent-process-performance/) - [API error contract: returning meaningful errors to clients](https://muhammetsafak.com/blog/api-error-contract-returning-meaningful-errors-to-clients.md): How binding API error responses to one consistent contract simplifies client development and debugging: structure, codes, versioning and limits. (HTML: https://muhammetsafak.com/blog/api-error-contract-returning-meaningful-errors-to-clients/) - [Exception and Error Handling in PHP](https://muhammetsafak.com/blog/exception-and-error-handling-in-php.md): A practical guide to PHP exceptions and error handling: try-catch-finally blocks, multiple catch clauses, custom exception classes, and global handlers. (HTML: https://muhammetsafak.com/blog/exception-and-error-handling-in-php/) - [API versioning strategies and trade-offs](https://muhammetsafak.com/blog/api-versioning-strategies-and-tradeoffs.md): How do you evolve an API without breaking existing clients? A comparison of versioning strategies with their trade-offs, drawn from real-world experience. (HTML: https://muhammetsafak.com/blog/api-versioning-strategies-and-tradeoffs/) - [Pagination, Filtering, and Sorting in REST APIs](https://muhammetsafak.com/blog/pagination-filtering-and-sorting-in-rest-apis.md): How I design pagination, filtering, and sorting parameters in an API to present growing datasets to clients in a manageable way. (HTML: https://muhammetsafak.com/blog/pagination-filtering-and-sorting-in-rest-apis/) - [Fundamentals of RESTful API Design](https://muhammetsafak.com/blog/fundamentals-of-restful-api-design.md): Practical rules for making an API predictable through the triangle of resources, HTTP methods and status codes, with a real-world example. (HTML: https://muhammetsafak.com/blog/fundamentals-of-restful-api-design/) ## Blog — categories - [Languages](https://muhammetsafak.com/blog/category/languages/): 50 posts - [Framework & Library](https://muhammetsafak.com/blog/category/framework/): 22 posts - [Web Development](https://muhammetsafak.com/blog/category/web/): 23 posts - [Interface](https://muhammetsafak.com/blog/category/interface/): 19 posts - [Tools & Technologies](https://muhammetsafak.com/blog/category/tools/): 27 posts - [Journal](https://muhammetsafak.com/blog/category/journal/): 63 posts ## Blog — series - [Building CommitBrief](https://muhammetsafak.com/blog/series/commitbrief/): 6 posts - [Inside the Company](https://muhammetsafak.com/blog/series/inside-the-company/): 10 posts ## Optional Secondary pages. Skip this section if you need a shorter context; the sections above describe the site on their own. - [Tan Brand Guide](https://muhammetsafak.com/tan/guide.md): The 14-section brand guide for the mascot Tan: identity, personality, values, voice, expressions, poses, colors, animation, usage and don’ts. (HTML: https://muhammetsafak.com/tan/guide/) - [Tan’s Comments](https://muhammetsafak.com/tan/comments.md): The full list of Tan’s short comments on blog, research and Engineering pieces on this site, newest first. (HTML: https://muhammetsafak.com/tan/comments/) - [Tan Studio](https://muhammetsafak.com/tan/studio.md): An in-browser tool that turns one of Tan’s poses and a ready-made line or your own text into a sticker, speech bubble or social card; downloads as PNG and SVG. (HTML: https://muhammetsafak.com/tan/studio/) - [Support](https://muhammetsafak.com/support.md): Open-source packages, free books, Labs, Research and the blog stay free. Funding helps, and so do stars, shares, code and feedback. (HTML: https://muhammetsafak.com/support/) - [Follow](https://muhammetsafak.com/follow.md): New posts, research and records arrive through full-text RSS feeds. The combined feed, section feeds and the channels I share on are here. (HTML: https://muhammetsafak.com/follow/)