Skip to content

An internet-accessible API for you to request genuinely random numbers

Notifications You must be signed in to change notification settings

thomasvn/SampleStar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⭐️ 🧪 SampleStar

An internet-accessible API for you to request genuinely random numbers.

This service is backed by hardware devices that use a sample of radioactive material. The underlying physics of the radioactive material model true randomness (unlike pseudorandomness).

Usage

# Request a sequence of random numbers
# 
# Params:
# * requestId:        string (alphanumerics and "_") to identify the request
# * sequenceLength:   requested amount of random numbers returned
# * tag:              string (alphanumerics and "_") with tag/description of
#                     this request
curl --location --request POST 'http://samplestar.thomasvn.dev/api/randomSequence' \
--header 'Content-Type: application/json' \
--data-raw '{
    "requestId" : "req_3",
    "sequenceLength": "3",
    "tag": "thomasvn"
}'

# Query for a previously generated sequence
# 
# Params:
# * sequenceId:   string (alphanumerics and "_") to identify the original
#                 request
curl --location --request POST 'http://samplestar.thomasvn.dev/api/retrieveSequence' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sequenceId": "seq_zGTVFHjUy2PpVVRq"
}'

To Learn More ...

Future Roadmap

  • logic to generate/store/validate authentication tokens for paying customers
  • upgrade from flat-file database to relational database
  • safety guarantees when multiple instances are reading/writing to the same record
  • improved monitoring & alerting automation
  • deploy app to multiple regions, then multiple clouds
  • use DNS to round-robin between all deployments

About

An internet-accessible API for you to request genuinely random numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages