关闭

Parsing bunch of files implementation with akka

该项目收到14 来自天才威客的竞标,平均竞标价格为$489 USD

为像这样的项目获取免费报价
雇主工作
项目预算
$250 - $750 USD
全部竞标
14
项目描述

Parsing a bunch of files and handle parsing of files parallel. A supervisor should always know how the state of the workers is and answer with this information if requested. The parsing state of the a process and all processes may be requested at any time.

The requirements

------------------------

- It should be possible to import a bunch of files and parse each of these files (you can simulate parsing of files with a random thread sleep [5s-180s])

- It should be possible to ask at any time the progress of the process

- The process needs to terminate even if a file was corrupted and could not be parsed

- It should be possible to get all triggered processes

Technical requirements

--------------------------------

- It needs to be implemented with Akka (Supervision, Fault tolerance, ...)

- Tests must be present

- The process handling needs to be triggered by a REST-Api:

* Trigger import: POST, /api/import, REQUEST-BODY: {"files": [

"file-1", "file-2", "file-3", "file-4", "file-5", "file-6", "file-7", "file-8", "file-9", "file-10"

]}

* Get process: GET, /api/import/process/{process-id}, RESPONSE-BODY:{ "process-id":1,

"files": [

"file-1":"DONE",

"file-2": "IN-PROGRESS",

"file-3": "FAILED"],

"started-at": "2015-05-09T15:45:13"

"state": "[RUNNING|TERMINATED]"

}

* Get all processes: GET, /api/import/process, RESPONSE-BODY:

{[

{ "process-id":1,

"files": [

"file-1":"DONE",

"file-2": "IN-PROGRESS",

"file-3": "FAILED"],

"started-at": "2015-05-09T15:45:13"

"state": "TERMINATED"

},

{ "process-id":2,

"files": [

"file-1":"DONE",

"file-2": "DONE"],

"started-at": "2016-06-09T15:45:13"

"state": "RUNNING"

}

]}

在寻找赚取金钱的机会?

  • 设定您的预算和时间框架
  • 大致描述您的建议方案
  • 为您的工作领取工资

雇用同样在该项目上竞标的威客

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online