Junior — Senior
Creating a thread-safe REST service for managing user posts
livecode
Task condition
Develop a REST API that implements the following features:
- An endpoint for saving a new message from a user.
- An endpoint for retrieving a news feed: returns either all messages or only messages from a specific author based on the
user_nameparameter.
Implementation requirements:
- Data should be stored in memory (InMemory).
- The solution must be thread-safe.
- Follow object-oriented principles in the design.
Structure of the incoming request:
- Request:
user_name— a unique identifier of the author.message— the message text.