
I am Orlando Ezequiel Salazar Cruz, a Computer Systems Engineering student at the Instituto Tecnológico Superior de Calkiní (ITESCAM) in Campeche, Mexico. Throughout my coursework and personal projects, I have spent most of my time building web interfaces with Angular and TypeScript, along with backend services using Python and FastAPI.
When you are studying software engineering, distributed systems can easily feel like something reserved for senior engineers running large cloud clusters. You read about service discovery, retries, event-driven messaging, and fault tolerance, and it is easy to assume you need complex infrastructure before you can even start building.
Discovering Dapr (Distributed Application Runtime) gave me a much clearer way to understand distributed applications. It also gave me a realistic entry point into open source software, showing me that your first contributions do not have to be massive runtime features to be useful to other developers.
What Dapr Is and Why It Exists
Dapr is an open-source, portable, event-driven runtime designed to help developers build resilient distributed applications across cloud and edge environments. Instead of requiring your application code to import vendor-specific SDKs or manage infrastructure clients directly, Dapr runs alongside your application—commonly as a sidecar process—and exposes standard HTTP and gRPC APIs.
Modern applications rarely run as a single process talking to one database. Even a small microservice architecture usually needs to persist state, publish and subscribe to events, call other services, read secrets, or coordinate multi-step workflows. Without a consistent runtime abstraction, each service ends up repeating boilerplate code for retries, timeouts, serialization, and client setup—often tightly coupled to one specific database, message broker, or cloud provider.
Dapr separates what your application wants to do (such as saving state or publishing an event) from how the underlying infrastructure performs that operation (such as Redis, PostgreSQL, RabbitMQ, or cloud-managed services). Your code talks to the local Dapr sidecar over HTTP or gRPC, and Dapr handles the interaction with the configured component.
Problems Dapr Solves in Distributed Systems
Distributed systems introduce failure modes that do not exist in a single-process application. Network requests fail, downstream services restart or slow down, and partial outages happen regularly.
Dapr helps reduce several common problems in microservice and distributed architectures:
- Infrastructure coupling: Switching from one state store or pub/sub broker to another can be handled through Dapr component configuration instead of rewriting application logic across multiple services, provided the new component supports the required capabilities.
- Language lock-in: Because Dapr exposes standard HTTP and gRPC APIs alongside official SDKs, services written in different languages—such as Python, TypeScript, Go, or .NET—can work together using the same runtime model.
- Repetitive operational logic: Writing retry policies, timeouts, and observability hooks from scratch in every service is repetitive and error-prone. A sidecar runtime standardizes how services interact with external building blocks.
- Local-to-cloud consistency: You can run Dapr locally during development and use similar component abstractions in production environments without changing how your application calls Dapr APIs.
Core Building Blocks of Dapr
One of the easiest ways to learn Dapr is through its building blocks. Each building block solves a specific distributed systems task while keeping your application code focused on business logic.
Service Invocation
Service Invocation lets one service call another reliably using a Dapr app ID instead of hardcoding hostnames, ports, or network locations. Dapr handles discovery and routing through the sidecar layer, making service-to-service communication simpler across environments.
State Management
State Management provides a consistent API for saving, retrieving, updating, and deleting key-value state without coupling your code to a specific database driver. It also supports features like optimistic concurrency control (ETags), where supported by the state store, so multiple service instances can update shared state safely.
Publish and Subscribe
Publish and Subscribe (pub/sub) decouples event producers from event consumers using topics. A service publishes an event to a topic without needing to know which downstream services are subscribed or how many instances are running.
Bindings
Bindings let your application react to external events (input bindings) or trigger external systems (output bindings) through a uniform interface—such as cron schedules, queues, storage buckets, or messaging systems—without writing custom integration code for each external service.
Secrets Management
Secrets Management gives applications a standard way to retrieve sensitive values—such as API keys, database passwords, or tokens—from a configured secret store instead of hardcoding secrets or writing custom secret-loading logic in every service.
Workflows
Workflows allow you to orchestrate long-running, stateful, multi-step processes across services and activities. If a process spans several steps or encounters transient failures and restarts, Dapr Workflows tracks execution state so the workflow can resume reliably.
My Experience with Dapr University
Reading documentation helps you understand the APIs, while structured courses help connect the pieces together. Through Dapr University, I completed courses covering Dapr 101, Workflows, and Agents.
Because I already had experience building backend APIs with Python and FastAPI and frontends with Angular and TypeScript, these courses helped me connect distributed systems theory with practical service design. Dapr 101 gave me a solid foundation in the sidecar model and core building blocks, while the Workflows and Agents courses showed how multi-step orchestration and modern agentic workflows manage state and coordinate tasks reliably.
Learning one building block at a time made distributed architecture feel manageable instead of overwhelming.
Contributing to the JavaScript SDK and Documentation
For a long time, contributing to a well-known open-source repository felt intimidating. Looking at open issues and architecture discussions, it is easy to think a student has nothing useful to offer. Working in the Dapr repositories showed me that clear examples and accurate documentation are essential parts of any developer tool.
Dapr JavaScript SDK — PR #848
My first merged contribution in the Dapr ecosystem was dapr/js-sdk#848 ("docs: clarify handling of missing state"), which resolved issue #477 and was merged into main on October 18, 2026.
In the JavaScript SDK's gRPC state management example, a key named "key-2" was deleted and then queried afterward, but the example needed to show more clearly how to handle the case where the state value no longer exists. I updated the example to check for empty results and explicitly report when the state is missing, and I expanded the README to document how missing state and other HTTP errors are handled.
During the review process, a maintainer helped me understand the Developer Certificate of Origin (DCO) requirement. I learned how to add Signed-off-by lines using git rebase and update my remote branch cleanly before the pull request was merged.
Dapr Documentation — PR #5283
Another contribution I worked on is dapr/docs#5283 ("fix: correct Encrypt and Decrypt API label"), related to issue #5086.
In Dapr's cryptography documentation, an architecture diagram contained a typo—"Encrypt and Decrypt AI" instead of "Encrypt and Decrypt API". I corrected that label to "Encrypt and Decrypt API" while preserving the original layout and structure of the diagram.
The pull request was approved on October 16, 2026, and a maintainer also carried the change over to the v1.19 branch while preserving my authorship. At the time of writing, PR #5283 is approved and still open awaiting final merge.
Neither of these pull requests modified Dapr's internal runtime engine, yet both fixed real points of confusion that developers encounter when reading documentation or following SDK examples.
Illustrative Example: FastAPI with Dapr State Management
To show how the State Management building block works in practice, here is an illustrative example using Python and FastAPI alongside the Dapr State Management HTTP API.
This snippet is included for educational purposes to demonstrate the API contract and error handling rather than a deployment I have run or benchmarked for this post.
According to the official Dapr State API specification:
- Saving state via
POST /v1.0/state/<store_name>returns HTTP204 No Contentwhen the state is saved successfully. - Getting a key via
GET /v1.0/state/<store_name>/<key>returns HTTP204 No Contentwhen the key does not exist in the state store.
Here is how a FastAPI service can interact with a local Dapr sidecar on port 3500, translate Dapr's 204 missing-key response into a 404 for API consumers, and handle httpx connection or timeout errors cleanly:
import httpx from fastapi import FastAPI, HTTPException from pydantic import BaseModel app = FastAPI(title="Illustrative Dapr State Example") DAPR_HTTP_PORT = 3500 STATE_STORE_NAME = "statestore" DAPR_STATE_URL = ( f"http://localhost:{DAPR_HTTP_PORT}" f"/v1.0/state/{STATE_STORE_NAME}" ) class NotePayload(BaseModel): content: str @app.put("/notes/{note_id}") async def save_note( note_id: str, payload: NotePayload ) -> dict: # Dapr expects a JSON array of key-value state items. state_body = [ { "key": note_id, "value": { "content": payload.content }, } ] try: async with httpx.AsyncClient(timeout=5.0) as client: response = await client.post( DAPR_STATE_URL, json=state_body ) except httpx.TimeoutException as exc: raise HTTPException( status_code=504, detail="Timed out while connecting to the Dapr sidecar", ) from exc except httpx.RequestError as exc: raise HTTPException( status_code=502, detail="Failed to connect to the Dapr sidecar", ) from exc # Dapr returns 204 No Content on a successful save. if response.status_code != 204: raise HTTPException( status_code=502, detail=( "Unexpected response from Dapr when saving state: " f"{response.status_code}" ), ) return { "status": "saved", "key": note_id } @app.get("/notes/{note_id}") async def get_note(note_id: str) -> dict: try: async with httpx.AsyncClient(timeout=5.0) as client: response = await client.get( f"{DAPR_STATE_URL}/{note_id}" ) except httpx.TimeoutException as exc: raise HTTPException( status_code=504, detail="Timed out while querying the Dapr sidecar", ) from exc except httpx.RequestError as exc: raise HTTPException( status_code=502, detail="Failed to connect to the Dapr sidecar", ) from exc # Dapr returns 204 when the requested key does not exist. if response.status_code == 204: raise HTTPException( status_code=404, detail="Note not found" ) if response.status_code != 200: raise HTTPException( status_code=502, detail=( "Unexpected response from Dapr when reading state: " f"{response.status_code}" ), ) return { "key": note_id, "value": response.json() } Minimal Local Setup
Before running this example, make sure you have Python, Docker, and the Dapr CLI installed. The standard local Dapr initialization uses Docker to provision development dependencies, including a Redis state store.
For installation instructions, refer to the official Dapr documentation.
Initialize Dapr:
dapr init Install the Python dependencies:
pip install fastapi uvicorn httpx Save the code above as main.py and start the application alongside a Dapr sidecar configured with a local statestore component:
dapr run --app-id notes-service --app-port 8000 --dapr-http-port 3500 -- uvicorn main:app --port 8000 You can then open the FastAPI interactive documentation in your browser:
http://localhost:8000/docs Handling the 204 No Content response explicitly is a good example of why reading API specifications and SDK examples carefully matters: if your service assumes every non-error response contains JSON, querying a missing key will fail at runtime.
Lessons Learned from Contributing to Open Source
Participating in real code reviews taught me several practical lessons that you rarely get from classroom assignments alone:
Focused contributions have real value: Clarifying missing-state behavior in an example, improving a README, or fixing a label in an architecture diagram prevents confusion for the next developer using the project.
Documentation is part of the developer experience: Good software is much harder to use when edge cases are undocumented or diagrams contain typos.
Git workflow and DCO discipline matter: Keeping clean commits, rebasing when asked, and including
Signed-off-bytrailers for DCO checks are important habits when working with maintainers.Code reviews are collaborative: Maintainer feedback is not criticism of your experience level—it is part of keeping a shared codebase accurate and consistent.
How Other Students Can Start with Dapr
If you are a student or early-career developer interested in distributed systems and open source, you can start small and build momentum step by step:
Learn the core model first: Read the Dapr overview and documentation and test a small local application using one or two building blocks, such as State Management or Pub/Sub.
Follow structured courses: Explore Dapr University to understand how Dapr's building blocks, workflows, and agent patterns fit together.
Look for documentation and example issues: Check repositories such as dapr/docs or SDK repositories like dapr/js-sdk for unclear examples, outdated instructions, or small documentation fixes.
Read contribution guidelines before opening a PR: Check each repository's contribution guide so you follow commit formatting, branch naming, and DCO sign-off rules from the start.
Conclusion and Official Resources
Going from reading about distributed systems in university to contributing to Dapr's JavaScript SDK examples and documentation has been a meaningful part of my growth as a software engineering student at ITESCAM.
Open source does not require waiting until you know everything—it rewards curiosity, attention to detail, and willingness to collaborate.
If you want to explore Dapr and get involved, start with these official resources:
- Official Website: dapr.io
- Official Documentation: docs.dapr.io
- Dapr State API Reference: State Management API
- Dapr University: university.diagrid.io
- Dapr GitHub Organization: github.com/dapr
- My GitHub Profile: github.com/Ezequie1Sc

