Skip to content

alikdolg/bpbackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigPanda Backend task

The goal is implement a Non Blocking Producer/Consumer stream processing service that exposes an HTTP api.

The blackbox executable that spits out an infinite stream of lines of event data encoded in JSON:

Service Requirements

It should consume the output of the generator and gather the following stats: A count of events by event type. A count of words encountered in the data field of the events. (e.g. “the” → 32, “me” → 5) It should expose these stats in an HTTP interface. Stream may encounter corrupt JSON lines and should handle such events well and without interruption.

Build:

Edit "exec_path" property in src/main/resources/application.properties file, update it with path to generator.

Run mvn clean and then mvn install

Run:

In project target directory run following command: java -jar application-0.0.1-SNAPSHOT.jar

Improvements:

  • Implement logger
  • HTML based client
  • Support sorted output for counters

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages