This is PerlDean's Typepad Profile.
Join Typepad and start following PerlDean's activity
Join Now!
Already a member? Sign In
PerlDean
Recent Activity
The public vs private debate is more or less that same as commercial vs open source. Why would anyone buy an Oracle database when PostgreSQL (and others) are so excellent and free? The answers are many. But they do.
Indeed, as the window between heartbeats decreases (grainularity if you like) then the two issues i have mentioned become close to irrelevant. Triggered charges when a service is discontinued would solve the second issue i pointed out, as would being able to charge in arbitrary time periods (as you have described) solve the first problem. Does moonpig also allow for one off purchases? Obviously charging against credit as you described works well for ongoing services, but i wonder if customers could log in and purchase software licenses, or have usb toys shipped to them. Either billed immediately or charged against their uncharged credit? The heartbeat model would also be interesting to scale, unless the customers account (or each product they have) has a marker/timestamp/metadata for its last charged time. Then a swarm of processes, spread across N servers could chip away at the task with very little co-ordination. That would also solve your point #1 very naturally. I wonder how youve tackled horizontal scaling? With something like beanstalkd (which as nicely built in staggering of job starts, timeouts and stuff), the charging tasks could be dispatched to a pool of workers (both processes and "physical" servers) - assuming the tasks were atomic, the servers could fail without impacting the billing, and if the batch processing gets behind more workers can be added without much fuss. They can also be upgraded without interupting charging either.
Commented Sep 13, 2012 on No title at rjbs
1 reply
I was recently considering this very problem. Though i was considering basically having each customer have 'credit' and then draw from it daily to pay for each of their services. 30c/day or whatever. Then if they upgrade its handled fairly naturally. There is a loop hole in that if you charge them the whole first day, you may slightly rip them off (if they purchase at say 11pm with midnight billing job) or giving them the first day free (which can be be used to get free services, if they were to go to the trouble of scripting to start their services at one minute after midnight, and close them one minute before... people will do this im sure of it)
Commented Sep 12, 2012 on No title at rjbs
1 reply
if your language is best, why not spend your time coding in it rather than posting about how perl is dead?
Toggle Commented Oct 9, 2011 on Why Perl? at Modern Perl
I have omitted Devel::NYTProf, which is an excellent profiler developed originally at the New York Times. http://search.cpan.org/dist/Devel-NYTProf/ I dont think much of their publication, but i really like their profiler.
Toggle Commented Oct 8, 2011 on Why Perl? at Modern Perl
PerlDean is now following The Typepad Team
Oct 8, 2011