Skip to content

Connection Identifiers

Duncan edited this page Dec 31, 2019 · 2 revisions

TLDR

We use UUIDs to identify different TCP connections across services.

Details

We need the ability to distinguish connections, since connections are stateful. As a result we need identifiers for these connections. And these connections are created by different components, we need a way to coordinate the IDs such that they're unique. Due to our inability share state (read more), the easiest way to ensure that these IDs are unique when created by different services is to use a Uuid. If it's causing some kind of performance issue down the line we might want to consider a different scheme, since Uuids are probably overkill and connection IDs are used as keys in hash maps frequently.

Clone this wiki locally