On Thu, 26 Feb 2015 17:35:11 +0100
Victor Stinner <[email protected]>
wrote:
> > I think a "stream"-like functionality
> > would be mostly useful for clients. A server is better suited to the
> > traditional Protocol idiom IMHO.
> 
> I really hate the protocol API. It's too hard to use it for my little head.

Perhaps you should get used to it :-)

Especially if your server only receives data, it's very simple: just
implement the data_received() method (or datagram_received(), I don't
remember).

(it's also probably faster, in case you care about performance ;-))

> In the specific case of Ceilometer: there is no ack, the server only
> consumes input packets and dropped packets are ignored. It doesn't
> really matter if a few packets are lost. For example, Ceilometer can
> be used to store the CPU usage. It doesn't matter if you loose some
> points.

I would disagree with that :-) If you start losing packets it probably
means you are in the middle of something interesting, so you definitely
want to have metrics for that particular moment.

Regards

Antoine.


Reply via email to