Designing a JSON‑RPC Service
Learn to design a JSON‑RPC 2.0 service with Goa, including the shared endpoint, method exposure, ID mapping, and transport choices.
Build a small but complete JSON‑RPC 2.0 service using Goa’s design‑first workflow. You will define the API with the DSL, generate type‑safe code, implement the business logic, and run the service over HTTP, Server‑Sent Events (SSE), and WebSocket.
goa
code generator installed (go install goa.design/goa/v3/cmd/goa@latest
)A calculator
service with a single Add
method exposed via JSON‑RPC. You can call it over HTTP for simple request/response, and extend it to SSE/WebSocket as you progress.
Continue with the first step: Designing the Service.