nahkd123 / stonks

Global market mod for top selling block game
https://nahkd123.github.io/stonks/
MIT License
2 stars 0 forks source link

Feature: Stonks Server (standalone application) #28

Open nahkd123 opened 1 year ago

nahkd123 commented 1 year ago

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.

nahkd123 commented 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.

nahkd123 commented 1 year ago

I think I'll continue with this once #42 (and maybe other issues in the future) is closed.