Skip to content

neee/diff-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application: find differences between two base64 encoded strings

Setup

For run application:

  1. Download source from github
  2. Change directory to root project folder
  3. Use gradle for start the app: ./gradlew bootRun After the run application you can see the log like that
    Jetty started on port(s) 9090 (http/1.1) with context path '/'
    Started DiffApplication in 2.078 seconds (JVM running for 2.392)

Swagger endpoint for localhost: http://localhost:9090/swagger-ui.html

Another variant start app via docker:

  1. Download source from github
  2. Change directory to root project folder
  3. Use gradle to create docker image (you have already installed docker service on you computer), command: ./gradlew dockerBuildImage
  4. After creation image check the image: docker images, there have to be image with name: ru.serdyuk/diff-data:0.0.1-snapshot
  5. Run the image: docker run -p 9090:9090 ru.serdyuk/diff-data:0.0.1-snapshot

Swagger endpoint for localhost: http://localhost:9090/swagger-ui.html


Available methods

POST /v1/diff/{key}/left - put first value
POST /v1/diff/{key}/right - put second value
GET  /v1/deff/{key} - get result

Keep in mind, is it not final version, and the storage (for values) persists values, good way to implement external storage with evictions policy. It might be mongodb or some distributed cache (like redis or hazelcast).


For future releases:

  1. cloud storage implementation
  2. integration tests
  3. docker-compose (with external storage)
  4. vegeta load test
  5. graal compiler

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages