Welcome to my blog, where I share my passion for technology and software development. With a background in software engineering and a keen interest in cloud-native development, I enjoy exploring how modern tools can solve real-world problems.
Learn to run private, serverless AI models on Cloudflare's edge network. This guide covers secure REST API usage and building a production-ready AI gateway on Cloudflare, emphasizing user data protection and compliance.
David Muraya
10 mins read
16 hours ago
Read More...
Learn how to render Markdown to HTML in Reflex using `rx.markdown`. Covers basic usage, custom styling with `component_map`, and advanced pre-processing techniques.
David Muraya
8 mins read
6 days ago
Read More...
Learn how to make your FastAPI background tasks resilient using ARQ's retry mechanisms. This guide covers automatic retries, manual retry logic, and best practices for handling failures in production.
David Muraya
12 mins read
8 days ago
Read More...
Learn to secure your FastAPI API. This guide covers password hashing, OAuth2 password flow, and using JWT for a robust, production-ready authentication system.
David Muraya
9 mins read
18 days ago
Read More...
Stop repeating id and timestamp fields in your SQLModel models. Learn to use mixins and a base model to write cleaner, more maintainable code for your FastAPI application.
David Muraya
8 mins read
19 days ago
Read More...
Optimize your FastAPI application on Google Cloud Run. This guide covers advanced performance tuning, from Gunicorn worker configuration to minimizing cold starts.
David Muraya
13 mins read
1 month ago
Read More...
Learn how to secure your FastAPI application on Google Cloud Run by managing secrets like API keys and database passwords with Google Secret Manager. This guide covers setup, permissions, and CI/CD integration.
David Muraya
10 mins read
1 month ago
Read More...
Learn to connect FastAPI to SQL databases using SQLModel. This guide covers creating models, managing sessions, and building a complete CRUD API with practical examples.
David Muraya
11 mins read
1 month ago
Read More...
Learn to build fast and reliable APIs with this complete FastAPI tutorial. Covers installation, endpoints, data validation, and links to advanced topics.
David Muraya
14 mins read
1 month ago
Read More...
Learn how to handle background tasks in FastAPI using both the built-in BackgroundTasks and ARQ with Redis. This guide compares both approaches and shows how to build scalable async job queues and track task status.
David Muraya
7 mins read
1 month ago
Read More...
Learn how to set up robust logging in FastAPI. This article explains why logging matters, compares it to print statements, covers log levels, and shows how to configure logging for development and production.
David Muraya
8 mins read
1 month ago
Read More...
Learn how to build a flexible async Memcached client for your FastAPI application. This guide covers key generation, namespace invalidation, and integrating the client into your FastAPI routes.
David Muraya
13 mins read
1 month ago
Read More...
Learn how to serve a single page application (like React or Vue) directly from your FastAPI backend. This guide covers handling client-side routing, middleware order, CORS, and using a multi-stage Dockerfile for a unified deployment.
David Muraya
11 mins read
2 months ago
Read More...
Learn how to centralize your FastAPI configuration using Pydantic Settings and a .env file. This post covers setup, usage, and best practices for managing environment variables and secrets in a maintainable way.
David Muraya
10 mins read
3 months ago
Read More...
Learn how to centralize your FastAPI configuration using Pydantic Settings and a .env file. This post covers setup, usage, and best practices for managing environment variables and secrets in a maintainable way.
David Muraya
9 mins read
3 months ago
Read More...
Learn how to keep your FastAPI app connected to serverless databases like Neon, even when they scale down to zero. This post explains how to use SQLAlchemy's pool_pre_ping=True to automatically reconnect and avoid broken connections, with practical code examples and .env setup.
David Muraya
8 mins read
4 months ago
Read More...
Learn how to use multi-stage builds in Docker to create smaller, more efficient images for your FastAPI applications.
David Muraya
14 mins read
4 months ago
Read More...
Explore how Gemma3's function calling feature, powered by Python, enables developers to create interactive AI applications that go beyond text generation
David Muraya
7 mins read
5 months ago
Read More...
This article explains how to use SQLite's FTS5 module with the trigram tokenizer to perform efficient full-text searches, particularly for matching similar names in a large database. It covers setting up the virtual table, normalizing names, bulk inserting data, and executing searches that handle close but not exact matches
David Muraya
12 mins read
5 months ago
Read More...
This article demonstrates how to leverage Google Gemini AI to extract structured JSON data from a web page. It includes a detailed guide with code examples for defining data structures, and implementing a parsing function
David Muraya
10 mins read
5 months ago
Read More...
Learn how to connect your custom domain to Google Cloud Run in just a few simple steps, making your website look professional without breaking the bank.
David Muraya
9 mins read
5 months ago
Read More...
Reflex simplifies SEO by automatically generating robots.txt and sitemap.xml files when you include the deploy_url in your application's configuration.
David Muraya
11 mins read
6 months ago
Read More...
This blog post explains how to use Reflex to generate static front-end files and serve them using Caddy in a Docker container. It covers the Dockerfile setup, and Caddy configuration.
David Muraya
8 mins read
6 months ago
Read More...
In this article, I tested various methods to run a Reflex 0.7.4 app on Google Cloud. After experimenting with Gunicorn, Uvicorn, Granian, and Reflex's built-in command, I found that Gunicorn with Uvicorn workers delivered the best performance.
David Muraya
13 mins read
6 months ago
Read More...
Learn how to build a production-ready FastAPI applications by implementing 6 essential middlewares. This guide covers security headers, CORS, trusted hosts, Gzip compression, process time tracking, and custom exception handling, including why their order is critical.
David Muraya
12 mins read
8 months ago
Read More...
Learn how to add Google Authentication to your FastAPI app, making it easier to use and more secure.
David Muraya
9 mins read
8 months ago
Read More...
Learn how to connect GitHub, Google Cloud Build, and Google Cloud Run to automatically build and deploy your FastAPI application every time you push code changes.
David Muraya
10 mins read
8 months ago
Read More...
Have a project in mind? Send me an email at hello@davidmuraya.com and let's bring your ideas to life. I am always available for exciting discussions.