logspout-cloudwatch icon indicating copy to clipboard operation
logspout-cloudwatch copied to clipboard

Question: Same stream name for multiple containers?

Open jgallen23 opened this issue 9 years ago • 1 comments

First off, thank you for this, it's the only cw logspout that does everything I need.

Wanted to ask a quick question. Is it ok if multiple containers have the same stream name? On some other libraries they say not to because of performance issues. Just wanted to check if others are sending multiple logs to the same stream.

jgallen23 avatar Feb 24 '16 16:02 jgallen23

I haven't looked at this library in depth, but I can tell you that CWL itself advises against multiple producers for a single stream. The CWL API requires a token to be round-tripped in each request, so two uncooperating producers would (1) try to send (2) perhaps fail because of token mismatch, (3) look up the correct token, (4) try again. A constant race condition.

igrayson avatar Jun 07 '16 23:06 igrayson