Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

Idempotency Keys for Python Payment APIs

A user double-taps Pay. The network retries. Your API creates two orders for one charge. POST is not idempotent. If you handle payments without an idempotency strategy, you will eventually ship a bug…

  • Idempotency keys prevent duplicate charges in Python payment APIs.
  • Client generates unique key for each user action, included in retry requests.
  • Server processes first request with key, stores response for duplicates.

REST vs SOAP vs GraphQL vs gRPC — Interview Notes for Backend Engineers

I have shipped REST APIs for four years (Flask, AWS Lambda + API Gateway, FastAPI). This is the reference I use in design reviews and phone screens — focused on when to pick each style, not memorising…

  • REST APIs use resources (nouns) and HTTP methods (verbs) with JSON format
  • REST is common for public or mobile APIs due to browser-friendliness and caching
  • gRPC is suitable for internal, high-performance service-to-service communication

More from Saturday 29 August →