cjs8487 / PlayBingo

A comprehensive speedrun bingo service
https://playbingo.gg
0 stars 5 forks source link

Refactor /actions system #37

Open cjs8487 opened 3 months ago

cjs8487 commented 3 months ago

The current implementation for the /actions endpoints is not ideal. There is a lot of duplicated code, and it would likely be beneficial to make the request bodies mirror corresponding websocket messages, especially as we plan to allow many websocket actions to also be sent in through the REST API in the future, as this would allow developers to easily reuse processing code if needed, or easily migrate if their needs to change. I don't think the parallelism is a requirement though.

This proposal is as follows

Some interesting ideas worth considering