hpi-epic / pricewars

Price Wars - A Simulation Platform for Dynamic Pricing Competition
https://hpi.de/en/plattner/projects/price-wars-an-interactive-simulation-platform.html
MIT License
52 stars 24 forks source link

Sale Notification over Websockets #35

Open CarstenWalther opened 6 years ago

CarstenWalther commented 6 years ago

Currently merchants run a web server to receive sale notifications from the marketplace. The marketplace sends requests to the merchant's web server.

This approach has two problems:

I propose to send sale notifications over websockets initiated by the merchant. The merchant does not need to run a webserver to use the marketplace. And the merchant knowns if the websocket connection to the marketplace is interrupted and can react to it accordingly.

On the merchant-side Python websockets can be used to implement this feature. The marketplace uses Akka-Http since pull request https://github.com/hpi-epic/pricewars-marketplace/pull/11. This library also supports websockets.

cmfcmf commented 6 years ago

That would indeed be a great improvement. It would also allow students to work with the HPI servers via VPN - we couldn't make it work with the current approach. 👍