Python & backend engineering
I'm Piotr Rogulski. I write practical tutorials on Python, backend engineering, and the cloud, covering FastAPI, Django, PostgreSQL, and Kubernetes.
Recent writing
All postsKnative KafkaChannel, Subscriptions, and SinkBinding
Build an event-driven pipeline with Knative KafkaChannel, Subscriptions, and SinkBinding. Compare channels with brokers and connect Python event producers.
Troubleshoot Knative Eventing with Kafka: Useful Commands
Debug Knative Eventing with Kafka using kn and kubectl commands. Inspect services, revisions, triggers, Kafka sources, and event delivery.
Python Mock side_effect: Return Values Based on Input
Use Python unittest.mock side_effect with a custom iterator to return different values while preserving method arguments in mocked results.
Consume Kafka Events with Knative and FastAPI on Kubernetes
Build an event-driven Python service with FastAPI, Kafka, and Knative on Kubernetes. Configure Kafka sources, brokers, and triggers to route events.
Fix Kubernetes Resources Stuck Deleting with Finalizers
Diagnose a Kubernetes custom resource stuck during deletion and inspect its finalizers, using a Knative Broker example and kubectl commands.
Manage Python Versions and Virtualenvs with pyenv on Apple M1
Manage Python versions and virtual environments on Apple M1 with pyenv, pyenv-virtualenv, and virtualenvwrapper. Install tools and switch between projects.