Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.66 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.66 KB

Ledger Writer Service

The ledger writer service accepts and validates incoming transactions before writing them to the ledger.

Implemented in Java with Spring Boot.

Endpoints

Endpoint Type Auth? Description
/ready GET Readiness probe endpoint.
/transactions POST 🔒 Submits a transaction to be appended to the ledger.
/version GET Returns the contents of $VERSION

Environment Variables

  • VERSION

    • a version string for the service
  • PORT

    • the port for the webserver
  • JVM_OPTS

    • settings for the JVM. Used to obey container memory limits
  • LOG_LEVEL

  • ConfigMap environment-config:

    • LOCAL_ROUTING_NUM
      • the routing number for our bank
    • PUB_KEY_PATH
      • the path to the JWT signer's public key, mounted as a secret
  • ConfigMap service-api-config

    • BALANCES_API_ADDR
      • the address and port of the balancereader service
  • ConfigMap ledger-db-config:

    • SPRING_DATASOURCE_URL
      • URL of the ledger-db service
    • SPRING_DATASOURCE_USERNAME
      • username for the ledger-db database
    • SPRING_DATASOURCE_PASSWORD
      • password for the ledger-db database

Kubernetes Resources