What are the requirements to build a fully on-chain order-book at scale? To what level can different L1/L2s support order-books with multiple scale? Say, for example, how high/low the tps/tx fees should be. Any good ideas/resources to figure this out?
To build a fully on-chain order book at scale, you need a platform that provides high scalability, real-time data feeds, smart contract capabilities, security and reliability, and a seamless user experience. One of the L2 communities I know could be of help in terms of ideas/resources is Cartesi. It can provide the necessary infrastructure and tools to build such a system.
Nasdaq processes ~20,000 transactions per second, Ethereum combined with all the layer 2 networks and rollups built on top of it do less than 50 transactions per second
Don’t forget you’ll need to host your own data base. Pinging a smart contract for data feeds will add up very fast.