3 ms·
We use not so much frameworks but combination of lightweight libraries: - runtime assertions [0] - to map unknown values at i/o boundary into statically typed
by mirekrusin 4y ago
We use not so much frameworks but combination of lightweight libraries:
- runtime assertions [0] - to map unknown values at i/o boundary into statically typed code (rpc input parameters, sql results etc)
- template based sql combinators to sanitize sql/generate sql [1]
- jsonrpc over websockets - for bidirectional comms between f/e and b/e
It works very well for us for hundreds of rpcs - it's easy to manage things like permissioning/narrowing visibility and other aspects you need in business/enterprise-like setting ie. performance monitoring is very easy/straight forward.
[0] https://github.com/appliedblockchain/assert-combinators https://github.com/appliedblockchain/assert-combinators
[1] https://github.com/appliedblockchain/tsql https://github.com/appliedblockchain/tsql