I am writing a token swap contract on Ethereum Blockchain to manage ERC 20 token swap in an exchange.
The Questions is that in terms of scalability, which of the following two options would be better considering the exchange will handle up to a Million Users.
Option 1 Create multiple contracts with each responsible for swapping a single pair. This can distribute the workload on a single contract.
Option 2 Create a single contract to manage swapping of all the tokens. This option can be used considering that the blockchain can Handle the processing in a decentralized manner and the smart contract will be able to call multiple methods in parallel without affecting the performance
So which option would be correct and more suitable in case of an Exchange with up to a Million Users