Open nahkd123 opened 1 year ago
After a bit of discussion with some people, I decided to use the TCP/Unix sockets for communicating between Stonks Server and Stonks for *insert platform name here* implementations. I also planned to make a Rust server for Stonks, and some people said it is hard to work with Rust when creating RESTful applications.
I think I'll continue with this once #42 (and maybe other issues in the future) is closed.
This will enables server owners to share market data across servers.
I initially wanted to use SQL database drivers (SQLite for easy setup, or MySQL if you need to share the Stonks database with other applications). This is because Stonks offers data can be stored in a table, but I need to make sure the table is always sorted for each offer type.
For communication, I wanted to try the good ol' "RESTful API" where each service call is a request to standalone server.
I'm not good at designing distributed system architecture or something like that so I need some help here.