Adding Redis to FastAPI with Docker and Optimizing with Cache

Adding Redis to FastAPI with Docker and Optimizing with Cache

Tiempo de lectura: 2 minutosStack: FastAPI · Docker Compose · fastapi-cache2 · Redis 7 No caching, each request goes to the database even if the data has not changed. With Redis, the first call checks the DB and stores the result. The subsequent requests return Redis directly, without touching the DB. Scenario No Redis With Redis GET /books (First … Read more

Optimizing FastAPI for Quick and Effective Performance

Tiempo de lectura: 2 minutosThese 4 optimizations improve performance, concurrency and response speed of a FastAPI API in production with Docker. Gunicorn acts as a process manager above Uvicorn. Launches multiple workers (independent processes) to allow the API to handle several requests in parallel, not sequentially. Main Impact: Improved concurrency under load. With 4 workers, you can handle 4 … Read more

Understanding CRUD in Programming (2026): The Real Deal and its Practical Applications

Understanding CRUD in Programming (2026): The Real Deal and its Practical Applications

Tiempo de lectura: 2 minutosIf you understand what is a CRUD, you can build 80% of existing applications today. In this tutorial, I will explain CRUD from scratch, with practical mindset, real-world examples and modern approach. CRUD means: Possible it may sound simple… but here is the reality: Instagram, Amazon, Spotify, Netflix, WhatsApp → Everything is CRUD. Posts, users, … Read more

How to create real-time applications with Python and FastAPI in 2026: A Complete Step-by-Step Guide

How to create real-time applications with Python and FastAPI in 2026: A Complete Step-by-Step Guide

Tiempo de lectura: 2 minutosBy 2026, FastAPI has become the fastest-growing framework within the Python ecosystem. Its combination of performance, modern typing, and ease of use make it the preferred tool for creating APIs, microservices, and real-time applications with WebSockets. This guide teaches you what is FastAPI, how to use it with WebSockets and how to build your first … Read more

What are workers in FastAPI and how to increase them?

What are workers in FastAPI and how to increase them?

Tiempo de lectura: 2 minutosA worker (worker) is a server process that handles incoming HTTP requests to your FastAPI application. Think of it as a person at a customer service counter: the more workers you have, the more customers you can serve at the same time. Imagine you have an API that processes requests like: @app.get(“/procesar”) def procesar(): time.sleep(2) … Read more

Freezing PIP versions in a Docker container and creating requirements.txt

Freezing PIP versions in a Docker container and creating requirements.txt

Tiempo de lectura: < 1 minutoWe will learn today how to freeze versions and update your container with a fixed requirements.txt. docker exec -it nombre_contenedor /bin/bash This leaves you in the terminal inside the container. Make sure to be in the folder where you installed your packages or where your venv is located. Generate requirements.txt Inside the container, execute: pip … Read more

Verifying App Purchase with Apple Store Kit 2 and JWT in Python

Verifying App Purchase with Apple Store Kit 2 and JWT in Python

Tiempo de lectura: < 1 minutoWe will share a function that will allow us to verify the purchases we make on Apple with Apple Store Kit 2 and JWT using Python. First, we will create a function utils that will allow us to validate the jwsRepresentation of the Apple purchase. For that we will use these functions: import base64import requestsimport … Read more

Verify Purchase in iOS App Using Python

Tiempo de lectura: < 1 minutoWe will create a function today that allows us to verify an in-app purchase made from iOS using Apple and written in Python. We will create a utility function like this: import requests def verify_ios_purchase(purchase_token: str, testMode: bool = False) -> dict: print(purchase_token) print(“—————————“) “”” Verifies the iOS receipt with Apple servers. Args: purchase_token (str): … Read more

Rescaling an image using the Nearest Neighbor algorithm with Python and Pillow.

Rescaling an image using the Nearest Neighbor algorithm with Python and Pillow.

Tiempo de lectura: < 1 minutoHoy you are sharing a small function that allows image scaling using nearest neighbor and directly from the server. You will reduce the computational cost of the front to scale images. I recommend using it for pixel art style. Although it may work with other images or you’ll need to change the resizing algorithm. First, … Read more

Implementing Google Login in Android with React Native and Expo and Validating with a Python Server

Implementing Google Login in Android with React Native and Expo and Validating with a Python Server

Tiempo de lectura: 4 minutosThis is how we can implement Google Sign in using React Native and Expo in a simple way. The first thing we will do is use this library @react-native-google-signin/google-signin The installation is: npx expo install @react-native-google-signin/google-signin We will configure it once installed. First we will create our handler in Typescript: html import React from “react”; … Read more