Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
POC of an end to end async pattern #71
This is a proof of concept, nothing really operational but a small example.
The goals are:
On the read side, here is the pattern:
On the write side:
We have two points here: impacts on the Roll API and technical implementation.
First questions regard the API (I guess the implementation details will depend on the API we want): the way to consume the request body is async, so we cannot have a
So let's discuss and challenge all this!
Quick brainstorming with @davidbgk on the API changes.
The philosophy is: keep the default usage simple, and allow more control when needed, while keeping the end-to-end async and only loading the body on RAM on demand.
Three main possible directions at this time:
Here is a raw example of what an API could look with that latest option (very raw):
Looks good to me so far, the more I see that annotation thing the more I like it!