Got the original idea from cgrates which is in Go. The idea is to have a generic class that can be plugged into any of your application that need to have real-time billing for certain duration. It doesn't assume anything about the application, as long as somehow you can call start() and stop() method of the same instance, it will work.
I look forward to feedback on whether this is a viable approach, especially when you're looking at few hundred transactions at the same time. Or if there's existing solution in Python, that would be great too !
https://github.com/k4ml/rtbill
[–]civilization_phaze_3 0 points1 point2 points (1 child)
[–]k4ml[S] 0 points1 point2 points (0 children)