Skip to content

sit-mindshift/distributed-numbergenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schwarz Distributed Number Generator

This is a distributed number generator based on GCP Firestore in Datastore mode
It generates a increasing number sequence using a in memory counter with reserved number segments.

Run it locally

Check the build.gradle file and ensure that the GOOGLE_APPLICATION_CREDENTIALS variable points to a service account which has read/write permissions to a GCP Firestore in Datastore mode
example:

environment "GOOGLE_APPLICATION_CREDENTIALS", "D:\\programming\\sdng\\playground-9d6aac7e886e.json" 

Execute the benchmark:

$ ./gradlew test -i

Benchmark Parameters:

Variable Short Meaning
SdngApplicationTests.NUMBERS_OF_THREADS NOT is the number of threads running in parallel trying to generate new numbers
SdngApplicationTests.NUMBERS_PER_THREAD NPT is the number numbers each thread wants to generate
NumberCounterService.COUNTER_RESERVATION_STEPS CRS is the amount of numbers which gets reserved for each memory segment

Benchmark Results:

NOT NPT CRS Numbers per second
10 2000 100 578
10 2000 200 1168
10 2000 400 2311
10 2000 800 4279
20 2000 100 700
20 2000 200 1359
20 2000 400 2732
20 2000 800 5789


Author: Sebastian Kroll

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages