In a Stanford class on Cloud computing overview, the software architecture is described as in the right diagram:
This knowledge base cover the first of the far perimeter of the cloud stack. It is one of the pillar of the cloud ecosystem, where customers, products and business meets. The other pillar being Identity and Access Management (IAM) 👤.
- Basics
- Pricing
- Product Catalog
- Calculator
- Cost Forecast
- Marketplace
- Accounting
- Coupons and Vouchers
- Taxes
- Invoice
- Payments
- Fraud
- UX/UI
- Business Intelligence
- Competitive Analysis
- Commercial Solutions
- History
- Open guide to AWS Billing and Cost Management
- Major use-cases for cloud services from a ROI standpoint
From monthly subscription to commodity-like on-the-go consumption, and including shopping-cart like funnel, there's plenty of scheme out there to structure your product's pricing.
- Don't just roll the dice – Software pricing guide - Not only huge and complete collection of pricing scheme, but also the psychological effect and impact on revenue model.
- Business Model Patterns - A list of 11 different ways to sell products and services.
- Axial - Business models - 38 models for inspiration.
The default, dynamic scheme for cloud resources.
- Why I Love Usage-Based Pricing - “The most important reason I like this pricing model is that it heavily incentivizes both the customer and the service provider to act in everyone's best interest.” Also details issues with other pricing models.
- Socially Optimal Pricing of Cloud Computing Resources - “The socially optimal operating point is unique, and can be sustained by a linear, usage-based tariff, which charges a fixed price per unit resource and unit time.” This paper justify of usage-based pricing for cloud resources.
- “Billing is not complex on purpose: it's the price to pay for elasticity.” (source) - Or why you're likely to get an endless stream of complaining users if choosing utility pricing scheme: while accurate to the (milli-)cent, this model is frustrating for customers not ready to invest time grasping the underlaying concepts.
- Riemann sum - The starting point about quantization of usage.
- Allen's interval algebra - Implementing usage-based pricing is tricky, and this algebra will help you organize temporal reasoning. Also see this Stack Overflow question with clean schema.
- Reconcile Your Monthly GCP Invoice with BigQuery Billing Export - Behind the quest of this developer to track its expenses, you get a glimpse on cloud billing difficulties. While not explicitly pointed out, pricing cloud resources is hard and the result of quantization, granularity and rounding, between space, time and currencies.
- AWS EC2 T2 Instances Demystified: Don't Learn The Hard Way - An example of really tricky burstable instances which accrues and limits its own amount of CPU usage credits.
Highly popular for SaaS businesses, subscription plans are easy to comprehend.
f-license
- Open-source license key generation and verification tool in Go.
Uncommon pricing schemes.
- The Three Part Tariff - Beyond linear pricing, there is a place for an additional platform fee and free-tier component in the pricing structure.
- Google Ads API:
BillingCap
enum - Capped actuals: monthly with rollover, an optimized pricing scheme to limit surprises from customers, in which we more or less sell quotas.
Theory and practical insight to help you choose the right price point.
- Pricing Psychology - Which numbers should you use? How high should it be? Should it be rounded? This guide has 42 tricks to help you choose the best price.
- The 7 factors to consider when pricing your startup product - Pricing is an offensive tool to reinforce your product value and underscore the company core marketing message.
- Finding the max revenue price mark for digital products - “TL;DR: to find the optimal price that provides maximum revenue for your product you will need to field-test several price points; you then reconstruct the revenue curve and find the peak.”
- Pricing niche products - “The most compelling argument against simply picking a price, though, is that it limits how much you can learn about your market.”
- The cup-of-coffee pricing fallacy - Explains why it is a sloppy analogy.
The central repository of all available services, products, variants, options and pricing available to the customer to purchase.
Simulate a virtual invoice depending on the resource you plan to use.
- Cloud Cost Calculator - Web-based tool for finding the cheapest cloud servers for a given set of requirements.
- Cloud Computing Comparison Engine
- EC2Instances.info - Easy Amazon EC2 Instance Comparison.
Help your customers predict their upcoming and future consumption based on their past usage.
- Forecasting: Principles and Practice - “Comprehensive introduction to forecasting methods and to present enough information about each method for readers to be able to use them sensibly.”
- Transforming Financial Forecasting with Data Science and Machine Learning at Uber - Discusses how Uber apply data science and machine learning in their financial planning platforms.
- Time Series Prediction - A short introduction for pragmatists - Facebook's Prophet (which uses Stan underneath), seems to be worth checking to implement a cost forecast tool while taking care of seasonality.
- Komiser - Open-source tool to stay under budget by uncovering hidden costs, monitoring increases in spend, and making impactful changes based on custom recommendations.
- GCP Cost Forecast
- AWS Forecast product
- How to save money on your AWS bill.
A marketplace connect supply with demand that lead to a financial transaction. If there is no payment involved, then it is an aggregator, or a hub. Not a marketplace.
- Customized Regression Model for Airbnb Dynamic Pricing - This paper describes the pricing strategy model deployed at Airbnb.
- Papers we love: Auctions and Bidding - A collection of papers on bidding and auctions.
- Vickrey auction - Hinted by an HN comment, in which yes, “‘Asking people what they'd pay for and how much rarely works.’ (…) [but] using a Vickrey auction, similar to Google's ad auction mechanism, can elicit a person's maximum willingness-to-pay.”
- 19 Tactics to Solve the Chicken-or-Egg Problem and Grow Your Marketplace - “Which comes first, the supply or the demand? Chicken or egg?”
- How to Kickstart and Scale a Marketplace Business: Constrain the marketplace; Decide which side of the marketplace to concentrate on; Drive initial supply; Drive initial demand. A 4-parts series with dozen of interviews of people with direct experience building and scaling marketplaces.
This sub-section focus on bid/ask mechanism matching resource producer with consumers. Most of the time these are one-sided markets with the big platform trying to amortized under-utilized inventory.
- Incentive Engineering for Computational Resource Management - Paper exploring the “mechanisms for the allocation of processor time and storage that are compatible both with programming practice and with market mechanisms.”
- Pricing of Service in Clouds: Optimal Response and Strategic Interactions - “How should the consumer modulate its demand to optimize its profits? (…) How should the provider and consumer negotiate the specific pricing structure they will employ?” Covers non-linear models, tiered pricing, elastic demand, consumer et provider strategies.
- Dynamic Cloud Pricing for Revenue Maximization - “Amazon's spot price is unlikely to be set according to market supply and demand. Rather, price oscillates within a very narrow band most of the time, which is more likely to be an artifact of some pricing algorithm with predetermined reserve price.”
- Usage Patterns and the Economics of the Public Cloud - “We examine the economics of demand and supply in cloud computing. (…) These results explain why fixed prices currently prevail despite the seeming need for time-varying dynamics. Examining the actual CPU utilization provides a lens into the future. (…) demand fluctuations would be on par with the three classic industries where dynamic pricing is important (hotels, electricity, airlines) and dynamic prices would be essential for efficiency.”
- Maximizing Profit of Cloud Brokers under Quantized Billing Cycles: a Dynamic Pricing Strategy based on Ski-Rental Problem - “The key idea of our algorithms is to use pricing signal to regulate user demand. One may argue that such an algorithm gives poor service to the user as it pushes tasks out of the queue in order to maximize cloud broker's profit.”
- Present or Future: Optimal Pricing for Spot Instances - “Pricing policy of spot resources should be carefully designed and the impact on both present and future should be considered.”
- “You always pay the spot market price, not your bid.” (source) - Simple explanation of the bidding mechanism.
- Deconstructing Amazon EC2 Spot Instance Pricing - “Cloud providers possessing large quantities of spare capacity must either incentivize clients to purchase it or suffer losses. Amazon is the first cloud provider to address this challenge, by allowing clients to bid on spare capacity and by granting resources to bidders while their bids exceed a periodically changing spot price.”
- GCP Preemptible VMs vs AWS Spot Instances.
- “Look at the 3-month spot price history to estimate cost and to discover combinations of availability zone and instance type with extra capacity.” (source) - TL;DR: users are seeking more transparency on the spot market.
- The Eternal Cost Savings Of Netflix's Internal Spot Market - When you're big enough that creating an internal secondary market for instances makes economic sense.
- AutoSpotting - Tool that easily and reliably converts (all) your existing AutoScaling groups to cheaper spot instances.
Targeted online advertisements marketplaces have a lot in common with traditional cloud marketplace. Some good inspiration there, from concepts to tech
- RTB Budget Pacing Summarized - A collection of budget pacing resources for targeted online advertisements.
- Samsung's online ads platform/exchange war story - How to scale to 5M bid request/s, 2ms Max Response Time.
RTB4Free
- Open Source Bidder and Demand Side Platform (DSP).
- Accounting for Developers 101.
- Accounting for Computer Scientists.
- Algebraic Models for Accounting Systems - This book is about the application of abstract algebra to the analysis of accounting systems.
- So, you want to learn Bookkeeping! - Learn accounting & bookkeeping for free.
- Accounts Demystified: The Astonishingly Simple Guide To Accounting.
- Tutorial on multiple currency accounting - An excellent resource for implementing multi-currency accounting systems.
- Financial Intelligence for Entrepreneurs: What You Really Need to Know About the Numbers.
- Accounting Memento For Entrepreneurs (US GAAP) - An interactive form to play with accounting concepts.
- Plain text accounting tools - Extensive list of open-source personal finance projects that might be great to look into for inspiration on double-entry accounting and bookkeeping.
- And a list of graphical accounting tools: GNUCash (GTK+), Grisbi (C), Firefly III (PHP).
- Moonpig: a billing system that doesn't suck - Design decisions behind a billing and accounting system. Key takeaway: some companies still pays by checks; do not use floats; complex customer workflows; date and time issues; mutable data.
- Django Hordak - Core functionality of a double entry accounting system for Django.
- GnuCash Tutorial and Concepts Guide - A complete tutorial on personal finance tracking with GnuCash.
- Books, an immutable double-entry accounting database service - Explain the basic data model of a double-entry accounting system relying on Google Spanner for internal use at Square.
- Quantity discounts on a virtual good: The results of a massive pricing experiment - “Implementing price reductions ranging from 9–70% for large purchases, we found re- markably little impact on revenue, either positively or negatively.”
- Raising Prices is Hard - Backblaze post-mortem on raising prices on their main offer. They wanted to create an extension program based on credit system. This became a full-time job for a handful of their most senior engineers, and resulted in a six month project.
- Details on Expiring DigitalOcean Credits - The reason you have to add an time limit on credits: unused ones accounts as liabilities on our balance sheet.
- Hacking Scooters: How I Created $100k Worth Of Free Rides - A cautionary tale on how promo codes can be exploited to get unlimited free rides.
- China's Pinduoduo reports theft of online discount vouchers to police - The next level of fraud: “an online collective exploited a loophole on its platform to ‘steal’ tens of millions of yuan worth of discount vouchers”.
- Council Directive 2016/1065 as regards the treatment of vouchers - European directive on the application of VAT when vouchers are involved.
- Council Directive 2006/112/EC - European Union reference on the common system of VAT.
- 2017 Tax Software Developer's Guides - A list of test cases for developers to test their tax code against.
- {Digital,Cloud,Electronic,Online} Services VAT Rate Database - Centralize applicable VAT rates on foreign online services, for each country of residence (including territorial exceptions).
- Global VAT & GST on digital services – List of countries requiring application of taxes on foreign provided online services.
- What does the "Reverse Charge" refer to? - Answer: a provision in which a business transfer the responsibility of VAT handling to the customer.
- “British supermarkets (…) charge you a fee for their backend card processing, but they subtract that fee from your checkout price.” (source) - Which allows them to claim the VAT on processing fees as input tax.
The invoice materialize a consumed service or purchased product, waiting to be settled by a payment transaction.
- On GCP invoiced billing - Invoiced billing (B2B-friendly payment by the customer after the service is consumed and an invoice issued) is a pain on GCP.
- Digital signatures: how Sleek leverages Cloud HSM to guarantee the integrity of legal documents - Here is a great way to rely on GCP's HSM to digitally sign documents and provide an immutable audit-trail. Might be applied to invoices as well as contract agreements.
- OpenTimestamps - Go beyond the solution above, and timestamp immutable document directly on Bitcoin's blockchain.
- Manta - Flexible invoicing desktop app with beautiful & customizable templates.
- InvoicePlane - A self-hosted open-source application for managing your invoices, clients and payments.
- Refact - A design project trying to revamp a phone bill with infographics.
- The Best Payment Gateway for Startups - A benchmark of top payment providers, their pricing and models.
- Avoiding Double Payments in a Distributed Payments System - RDBMS were build for banks around transactions to solve that specific issue. Then NoSQL came forcing us to carefully implement systems to avoid double spending.
- Monzo's bank transfers post-mortem - Or why you should be prepared for and work around gateway provider's outages.
- How to Build an Insurance Company - The importance of payment ops architecture.
- EU's Late Payment Directive - European rules on applicable fees for late payments.
- High failure rate of Point Of Sale devices in the upper Midwest - The root cause? People wearing a lot of wool in low humidity air, generating a lot of static.
- How ACH works: A developer perspective, part 1, part 2, part 3, part 4.
- Handling system failures during payment communication - Dropbox's experience trying to account for an unreliable payment provider.
- Why was I charged? - Under a constant stream of user complaints about payments, WordPress created a dedicated subdomains to help customers understand unexpected transactions. The trick is to add the URL of that kind of site directly in the bank statement.
A receipt materialize the payment transaction.
- The humble receipt gets a brilliant redesign - When a Netflix data engineer revisit receipts.
- The long, long history of long, long CVS receipts
The most popular payment device.
- 'Is that even legal?': Companies may be sharing new credit or debit card information without you knowing - Some credit and debit card companies have "updating service" that allows new account numbers and expiry dates to be shared with merchants. Visa's implementation is called VAU and Mastercard's is ABU.
- Strong Customer Authentication - Payment Services Directive 2, explained.
- Address Verification System - A system checking the matching of customer's billing addresses with the one associated with the credit card.
- pci-blackbox - PCI-DSS compliant card system built on PostgreSQL and PL/pgSQL.
The old-fashioned way of payment: by the way of banks.
- Open IBAN - Free and public IBAN validation and calculation webservice.
- Swift Codes - Swift / BIC vodes for personal use only.
- Swift Codes Repository - A repository that seems to scrape the website above.
The usual money transfer services.
- The untold story of Stripe - In which we learn that “once turnover hit a certain level, Paypal automatically put the business on a 21 to 60 day rolling reserve, meaning that up to 30 per cent of a company's revenue could be locked up for up to two months.”
There's monetary incentives to exploit your business. Be prepared to fight hordes of fraudsters and shady users.
- Detecting fraudulent activity in a cloud using privacy-friendly data aggregates - Discusses a method to detect fraudulent activity (launching DDoS attacks, Bitcoin mining, …) by using non-intrusive, privacy-friendly data: billing data.
- Awesome List of IAM: Fraud links - Section dedicated to fraud management related to user accounts, from our sister repository.
The majority of fraud is exploiting the most common popular payment device: credit cards.
- How I Stopped a Credit Card Thief From Ripping Off 3,537 People – and Saved Our Nonprofit in the Process - Describe a fraud technique known as "card testing", in which massive batch of stolen cards are checked for their validity against your API.
- How Candy Japan got credit card fraud somewhat under control - Suggestions involved either warning signals for trying to guess which orders might be fraud, or countermeasures to try to make things harder for the fraudsters.
- Five Fun Fraud Facts - Another tiny collection of features we can feed to a ML system to detect fraud. Comments on HN also unearthed more qualifying signals and derived geodata on the transaction.
- Credit Card Fraud Detection using Autoencoders in Keras - Tutorial on how to rely on anomaly detection to implement suspicious card transactions.
- How credit card thieves use free-to-play apps to launder gains - To prevent abuses, service provider must strengthen both credit card verification and the account creation process.
Synthetic score based on a collection of signals are often the best proxy of user's trustworthiness. Customer support most of the time rely on them to take action when these actions are not triggered automatically.
- The Secret Trust Scores Companies Use to Judge Us All - Nearly everything we buy, how we buy, and where we're buying from is secretly fed into AI-powered verification services that help companies guard against credit-card and other forms of fraud.
- GCP improved account management policies to better support customers - Or why relying too much on fraud automation might lead to disgruntled users.
- Digital Ocean's Update on Customer Shutdown Incident - Aggressively shutting down user servers is good from a business point of view to prevent fraudster abusing free resources, until it's not.
Best tools to automate fraud detection.
- Benford's law - Digit distribution can be a signal of accounting fraud.
- Integer percentages as electoral falsification fingerprints - In the same spirit as above, this paper show that frequency of reported round numbers in election is a signal of man-made anomalies. Might be applicable in some fraud-fighting area.
- Huber loss - “A loss function used in robust regression, that is less sensitive to outliers in data than the squared error loss.”
- Peak Detection in the Python World - Simple way to detect outliers.
- More than 600 million users installed Android 'fleeceware' apps from the Play Store - A new kind of fraud, in which apps silently keep charging users after the end of the trial period.
- CEO Fraud - A billing team responsible for collecting payment is prey to this kind of fraud, in which the CEO is impersonated to commend exceptional payment transactions.
- The Challenges of Operating a Computing Cloud and Charging for its Use - Skip the first 90% of this presentation by an AWS VP (which is about general system reliability). The last four slides are a good summary of what billing cloud services entails, especially the use of soft quotas to limit fraud.
- Fraud in Telephony Networks - Most of telephony frauds gravitates around billing and the metering of micro-transactions. This paper feature a taxonomy (on page 6) differentiating the root causes, vulnerabilities, exploitation techniques, and the way fraudsters can benefits from them.
Users gets easily angry when it comes to money. UX and UI might helps a lot to reduce frustration.
- Apple Subscriptions HIG - Guide and recommendation on how to make auto-renewable subscriptions user-friendly.
- Which has a higher conversion rate: A single long ecommerce checkout form or a multi-step one? - Focus first on other things in the cart, like easing anxiety and second-guessing by adding reassurance (trust marks, testimonials) near the credit card and completion steps, as well as some guarantee language that you may have used earlier in the product exploration process.
As stakeholder of the billing pipeline, you sat on all the critical data to measure and report on the health of the business.
Definition and collection of Key Performance Indicators (KPIs) worth monitoring.
- Startup financial models - 12 templates compared for SaaS - A great source of inspiration to get better visibility in your operations.
- 16 Startup Metrics - The 2 critical metrics being Customer Acquisition Cost (CAC) and Customer Lifetime Value (CLV).
- You're all calculating churn rates wrong - Churn rate is not a meaningful metric, as during the customer lifetime the churn probability is not constant. Most of the time because of your free trial and vouchers.
- Analyzing Churn Rates, Free Trials, and Other Metrics - “I didn't know anything about how to determine pricing or structure plans. My background is software development — finding insights in the mixture of churn rates, free trials, and all these other metrics seemed like magic.”
- Churn Prediction - “How to use Python in a simplistic way to fuel your company's growth by applying the predictive approach to all your actions.”
- RFM (customer value) - A way to segment users based on Recency, Frequency and Monetary value.
- A Quantitative Approach to Product Market Fit - Metrics produced above have a greater reach, as they're used as important signals to validate product-market fit.
- Startup growth calculator - Simple yet effective profitability calculator for startups.
To industrialize data production and consumption, your need data engineers to clean up, persist and consolidate data. Only after you get these data foundation you might think of onboarding data scientists.
- AI vs Data Science vs Data Engineering - “Data Engineers build data pipelines and infrastructure to ensure a constant availability of transformed data. Data Scientists analyze and build models from these data to develop new product features or drive the bottom line of the business.” As for AI professionals, their focus is on cognitive automation.
- Ten Ways Your Data Project is Going to Fail - You don't need data scientists. “For ETL, hire data engineers. For reporting, hire BI analysts. The end.”
- Cargo cult data science - “Data science is best viewed as a form of company culture, rather than a set of technologies. However, many firms will try to create that company culture by acquiring data-science technology, rather than working on their culture.”
- Why not use Double or Float to represent currency? - Because of precision: floats and doubles cannot accurately represent the base 10 multiples that we use for money.
- Never Use Floats for Money - “This is precisely the problem we have when trying to represent 10^-1, or 0.1 in binary. There is not an exact binary representation of 0.1 or 0.01.”
- European Spreadsheet Risks Interest Group - Horror Stories - A collection of cases in which uncontrolled and untested spreadsheet models led to lost revenue, mispricing, poor decision making, fraud and systemic financial failure.
- Practical Business Python - A blog collecting and spreading ideas on how to use Python more effectively in the business setting.
redash
- Connect and query your data sources, build dashboards to visualize data and share them with your company.- Metabase - Metabase is an open source solution to explore and visualize data and supports lots of databases.
- Apache Superset - Enterprise-ready business intelligence web application.
- Meltano - Open source convention-over-configuration product for the whole data lifecycle, all the way from loading data to analyzing it.
insights
- Insights is a tool to visually explore a PostgreSQL database, with an emphasis on generating graphs that show business performance over time.
A bunch of resources to keep track of the current status and progress of all companies operating in the domain.
- AWS Cost Management announcements.
- AWS reserved instances vs saving plan.
- EC2 Spot Price Tracker - Web app that collects and graphs EC2 Spot Prices.
- GCP billing release notes.
- GCP billing news - From the unofficial Google Cloud Platform newsletter.
- More choice, less complexity: New Compute Engine pricing options on tap - A wrap-up of recent GCP pricing features.
- DigitalOcean Platform changelog.
- Orbitera - GCP's billing subsidiary.
- 16 Online Subscription Billing Tools - An up-to-date list of subscription and recurring billing services.
- OpenCell - Monetization platform originating from an open-source telco billing project.
- Laravel Spark - Package that provides scaffolding for all of the stuff you don't want to code: subscription and team billing, invoices, but also user accounts features.
- Bullet Train - Same as above, but for Ruby on Rails.
- ASP.NET Zero - Multi-tenancy, authentication and authorization, invoices and payments.
- Chargebee - Subscription billing & revenue operations.
- Armatic Billing & Invoicing Software - Invoices, accounts receivable.
- Sensus Billing Access Application - Billing and metering solutions for utility companies.
- Quaderno - Calculate sales tax, VAT, and GST; automate receipts.
- keygen - Sell and manage license keys.
- The vanished grandeur of accounting - Accounting paintings were a significant genre in Dutch art.
- Engineering and Operations in the Bell System - Starting at page #445, the "10.5 Billing Equipment and Systems" section describe the history and technical evolutions of Bell's phone calls metering and pricing.
Your contributions are always welcome! Please take a look at the contribution guidelines first.
Content of this repository is licensed under the Creative Commons CC0 license. To the extent possible under law, Kevin Deldycke has waived all copyright and related or neighboring rights to this work.