Hello everyone! I've look at a lot of the rust design patterns blogs and github collections of best practices, but I'm looking to get my head around something a bit bigger.
In my scenario, I need to build a server that will be doing a bunch of work with workers. And the data for each worker needs to be read and written to a database. And the server will also have a web API so GUIs can ask about status, and issue commands, etc. What is the best architecture for that?
In the Python world, I would create a class that holds the state of things and holds on to each worker. I would pass that instantiated object by reference into the web server so it took could ask that object about the state of things and ask that object to deliver messages to the workers. Is this similar to what I would want to do with Rust?