ZeusWPI / MOZAIC

MOZAIC is the Massive Online Zeus Artificial Intelligence Competition platform
GNU Lesser General Public License v3.0
13 stars 6 forks source link

Proper request/response abstraction #255

Closed iasoon closed 6 years ago

iasoon commented 6 years ago

This might be really useful in client/server communication. It should probably be embedded into the event system in order to maintain all guarantees.

Just think about the marshmallows.

iasoon commented 6 years ago

Thinking more about this, it might be nice to view every event exchange as a request/response type thing, 'regular' messages having a void return type. This is nice because it will always signal when a request is handled, and we have a built-in way to handle errors in handling events.

iasoon commented 6 years ago

I started implementing this anyways. Currently a crappy implementation that only works for client->server requests is implemented on the request-response/again branch.

I believe this is the way we want to move forwards, though.

wschella commented 6 years ago

I believe you.