Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

First QoS Constraint #12

Open
CMCDragonkai opened this issue Apr 10, 2018 · 0 comments
Open

First QoS Constraint #12

CMCDragonkai opened this issue Apr 10, 2018 · 0 comments

Comments

@CMCDragonkai
Copy link
Member

CMCDragonkai commented Apr 10, 2018

Let's start with Latency.

Let's get some example Haskell data types that can express all the kinds of latency constraints we might want on a networked service.

Remember message framing. What kind of latency are we measuring? Packet latency or Request Response Latency? RTT latency. Think about beginning of request vs ending of request vs beginning of response and ending of response. Network protocols are layered. If our protocol spec specifies a RESTful API. We know this means HTTP (possible HTTPs). This means perhaps we have compatible QoS spec in the form of TCP packet latency and also HTTP latency.

data LatencySpec = 
  Percentile Double Int

Those constructor names should be made better!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant