- Start Zone
- End Zone
- Reset Zone
A surf map / timer to be apart of the room.
- Start and end time to be server side
- Create a json save for a players time (for not eventually save db side?)
Start with json saves or webserver db for saving times?
Maybe i need to build out my own Cloud.API style api before this? the way i interact with the webserver is kinda fucked.\
the problem im having, is i want the data from the s&box server to be accessible from a website. i feel like having the sbox data be stored in a aspnet core database feels better longterm for back ups and having a single point of truth. but the problem is what do i do when the sbox server cannot make a request to the backend. Like when a player finishes a race, i want the server to save this info and make sure it gets saved. should i save data to disk on the game sbox server and when the backend server is up, read the pending requests from disk and send them?
The back end server will exist on the same machine but the server will also serve other things, like my personal site. So if my personal site gets overwhelmed then it could cause requests to get lost? A retry pattern for a short time will handle this. but i feel like i need to save to disk instantly because if the sbox server crashes in that window, data will be lost. That is unlikely, what is more likely is the backend server handling to much, causing the sbox server to retry requests.
Ill also need to create a shutdown procedure instead of killing the process, so in flight data unconfirmed data is saved to disk.
I think i just need to treat the webserver as a data container instead of having complex logic webserver side. The game server should handle the bs. All the webserver should do is make sure only the game server can make requests and provide the data back.
does it make sense to create a generic outbox system that all http requests that are saving data go through?
- run ends
- server saves run to disk
- else where in the code, server reads the outbox and sends it to the webserver
- when the server restarts, it reads the outbox and sends all to the webserver