Re: Questions about purge app usage event API
Hi,
toggle quoted message
Show quoted text
You can do one or more of these: 1) Start billing epoch just once 2) Compare real application state with the events and provide a compensation logic. We tried this in the Abacus cf-bridge prototype [1] 3) Help improve Abacus cf-bridge [2] Probably the easiest thing to do is #1 since your implementation would be much simpler and you won't need to synchronize polling of events with purging (these might be responsibility of different teams which makes things harder). Even with all of these 3 approaches you might end up with problems. The correct thing to do imho be to implement the idea of Piotr Przybylski [3]. This goes in the direction of continuously pulling the events and storing a copy into a separate retention DB that can be used for audit, re-calculation, legal or other reasons. Regards, Hristo Iliev [1] https://github.com/cloudfoundry-incubator/cf-abacus/blob/master/lib/cf/bridge/src/index.js#L246 [2] https://github.com/cloudfoundry-incubator/cf-abacus/tree/master/lib/cf/bridge [3] https://github.com/cloudfoundry-incubator/cf-abacus/issues/30 2015-12-03 12:10 GMT+02:00 Nitta, Minoru <minoru.nitta(a)jp.fujitsu.com>: Hi Hristo, |
|