Loading...
v1/paste
inputs: text
returns: link
v1/view
input: unique ID
returns: text
PastedText table
A lot of data is written each day so we need a high troughput
Strong consistency is not required in this context
A NoSQL database should be used so we can scale better
There can be peaks of activity when users tries to write a lot of data:
If any database node is not available, the text is not lost thanks to the queue
The api server could write the text synchronously as a fallback if the queue system isn't available
We can improve this design with analytics and logs
Some text could be pasted severial times so we could add a way to store them just once