# Engineering Principles
This section details the principles behind the engineering aspects of the Mojaloop Hub.
# Logging
Industry-standard logging mechanisms for containers (stdout, stderr) are the default.
# Transfers
Resource identifiers are unique within a scheme and enforced by the hub.
API methods which can potentially return large result sets are paged by default.
Settlement model lookups use the currencies of payer and payee DFSP.
Resources/entities are typed so they can be differentiated
Names (of objects, methods, types, functions etc...) are clear and not open to misinterpretation.
# Accounts & Balances
Ledger implementation uses a strongly consistent underlying data store.
Critical financial data is replicated to multiple geographically distributed nodes in a manner that is strongly consistent and highly performant, such that the failure of multiple physical nodes will result in zero data loss.
# Participants
- Participant connectivity concerns are handled at a gateway layer to facilitate the use of industry standard tooling.
# Scalability and Resilience
Overall system transfer throughput (all three transfer phases) is scalable in as near linear manner as possible by the addition of low specification, commodity hardware nodes.
Business critical data can be replicated to multiple geographically distributed nodes in a manner that is strongly consistent and highly performant; Failure of multiple physical nodes will result in zero data loss.
# Mojaloop Specification
JWS is supported
Mutually authenticated (x.509) TLS v1.2 should be supported between participants and the hub
# Deployment
- Helm charts are available, and default configuration values suitable for production deployment scenarios can be downloaded.
# General
Context specific processing is done once and results cached in memory where required later in the same call stack.
All log messages contain contextual information.
Failures are anticipated and handled as gracefully as possible.
Cross process / network queries ask for only the data required.
Layers of abstraction are kept to an absolute minimum.
Interprocess communication uses the same transport mechanism wherever possible.
Aggregates are stateless.