Introduction - If you have any usage issues, please Google them yourself
Implement a simple token bucket algorithm (Putting the money into the bucket at a fixed rate and pay the price according to the information size which you need to send. The information is admitted to transfer when the enough token remained in the bucket.)