Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.94 KB

README.md

File metadata and controls

54 lines (45 loc) · 1.94 KB

⭐️ 🧪 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