RandomWits

life is too short for a diary

Most popular




gRPC vs REST: Resources, Methods, and Streaming

Image

A REST API exposes resources. A gRPC API exposes methods. That difference changes how we define the API, generate client code, serialize messages, and stream data between services...

Continue reading → Tags : grpc rest http spring-boot






Nginx proxy_pass vs HTTP Redirect

Image

Nginx can send traffic to another service without changing the URL in the browser. This is different from an HTTP redirect, where the browser is told to visit another URL...

Continue reading → Tags : nginx http






Getting Started with WebSockets

Image

HTTP follows a request-response model: a client sends a request, and the server returns a response. This works well for most web applications, but what if the server needs to send data as soon as it becomes available?..

Continue reading → Tags : websocket http