top | item 14287737

(no title)

privacyfornow | 8 years ago

We are going through a similar exercise but we avoided the approach of event driven CRUD and stuck to capturing customer's intent and an ability to read its side-effects as our de-facto API.

Consider for instance an API to create and account. Now let's say we want ability to update address. One approach would be an API that changes the address by updating the account but the customer never asked to update the account. The customer wants to change the address. How about we give them the API with change of address request/semantics? This way, no matter what happens, the API and the events remain in sync and you don't expose internal data storage semantics to customers that have no interest in them.

discuss

order

No comments yet.