I can't do it clientside. Nature of the problem.
I'm writing it in Rust, so it's relatively fast. But throwing thousands of people at it will still require extreme scale. I'm going to use K8S horizontal autoscaling. This will be obscenely expensive.
I'm not sure I can afford this. But I think a month of successful demonstration will get me funded (or bought out). So in theory my costs could wind up getting paid. Maybe.
Do I risk launching this and potentially having $100k multiples of AWS bills? I can't afford that. I don't want to deplete my life savings or potentially go bankrupt.
Could I put it on a corporate card as an LLC and do my best to make it work? Then fold without harm or fowl if it doesn't? Is that unethical? Could I get sued?
All that said, I'm almost certain that a successful demo at scale with the Internet thrown at it will get me money. It's a really cool and novel product. People will be talking about it.
What should I do? Advice will be very appreciated.
Or limit the number of beta users there can be.
Or work some freelance jobs for a few months and save up the cash and during that time pitch to investors. As you progressively have more cash you can hire an engineer to part-time hack on cool demos or to give you the opportunity to increase the number of beta users.
Remember that all complex systems operate in a degraded state. If there's ever a way that only part of a complicated swap executes correctly the trade can get really far out of position. People in Ethereum land will say things like "the smart contracts can't possibly execute if all of these conditions aren't met!", but I can assure you that lots of extremely fault-tolerant systems built by very smart people (like electronic stock exchanges) have failed in very surprising ways.
Weakly collateralized flash loans are just faster leveraged tools with all of the tradeoffs that entails.
YMMV, there's definitely a lot of money to be made.
https://www.youtube.com/watch?v=SjbPi00k_ME << Relevant.
Substitute "software" for DeFi. Every single day we're playing with fire through low quality code and bad security practices. DeFi just exposes the real financial costs and consequences of terrible software development. How many countless dollars and hours and data have been lost through bad code?