Skip to content

coingaming/task-sports-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

You are required to build a tiny application that ingests a list of 5000 sport updates from 10 unique matches in updates.json. Each update will be in the format;

{
  "match_id": 1,
  "delay": 500,
  "status": "active",
  "name": "Arsenal vs Manchester United",
  "crash": true
}

where:

  • match_id is an integer ID for the match.
  • delay is the time period in millisecond to wait before processing the current update. (When the update is received, the system should wait for delayms before processing it.)
  • status is the match's current status.
  • name is the match name.
  • crash is a boolean value. If true, processing the current update should raise an exception and move on to the next update.

All 10 matches should be rendered on a web-based UI showing the name and status. The status should be updated in real time after each update for the match is processed.

A few things to note:

  • No external database should be used. If persistence is needed, it should be done entirely in memory.
  • Order is very important. Messages for each match should be processed in the order it was defined in the json file. For example, the last status for match 23499706 should be paused.
  • We're very much interested in how you use concurrency.
  • We want to see how you test the solution.
  • The application does not need to be deployed on a remote server, but appropriate instructions on how to run it locally is essential.
  • We prefer that the task is done in Elixir, but it can also be done in any language you're comfortable with.

Good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published