Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes
Accepted

Idempotency for a financial transaction API

The goal is to achieve idempotency on the endpoint so that if two concurrent requests arrive at the service, the amount will be transferred only once. This may be a little bit tangled, as the process-...
VoiceOfUnreason's user avatar
3 votes

Idempotency for a financial transaction API

You mentioned an account table and a pot table. Implicit in the question, there must also be a ledger table, which we can use to audit a sequence of transactions. It only makes sense for the client to ...
J_H's user avatar
  • 7,156
2 votes

Who should build the RESTful client between two applications which both offer APIs?

Each application should publish its own client* If you test your api, you need a client to connect to it for the test. So you have a client right there, publish it. If the calling code writes a client,...
Ewan's user avatar
  • 76.4k
2 votes

CQRS: Multiple entry points for a single command

The first question: is there a problem with having only one command handler for these 3 adapters? Obviously, they will map each request/event into a common command and then dispatch it. Depends on ...
candied_orange's user avatar
1 vote

Who should build the RESTful client between two applications which both offer APIs?

In general, it's easier to pull data than to push it. If something goes wrong when pushing data, the side doing the pushing won't always know that the push wasn't successful. For example, if there's ...
JimmyJames's user avatar
  • 27.5k

Only top scored, non community-wiki answers of a minimum length are eligible