Better HN
topnewbestaskshowjobs
Log inSign up

hekike

107 karma · joined Aug 26, 2014 (12y ago) · 37 submissions

Submissions

1.

Open Source Is Ready for the Application Layer

2 points · by hekike · 1y ago · discuss

comment 1y ago · link · parent

Exactly! And as the boundaries between specializations like backend, frontend, embedded, and data science are going away, developers can express their creativity on an entirely new level. Generalists will thrive in the future!

3.

The Two Types of Future Developer

7 points · by hekike · 1y ago · 3 comments

comment 1y ago · link · parent

You can check https://openmeter.io for usage metering and billing.

comment 2y ago · link · parent

https://openmeter.io with Stripe. also available OSS: https://github.com/openmeterio/openmeter

comment 3y ago · link · parent

I wrote an article this year about how to setup UBP with Stripe. I hope it helps: https://openmeter.io/blog/implementing-usage-based-pricing-w...

7.

CPU Dispatch in ClickHouse(clickhouse.com ↗)

2 points · by hekike · 3y ago · discuss

comment 3y ago · link · parent

This is a great insight; thanks for sharing!

9.

ClickHouse for usage metering with Kafka Connect

9 points · by hekike · 3y ago · discuss

10.

Robust Usage Reporting with Stripe

4 points · by hekike · 3y ago · 2 comments

11.

Metering OpenAI API and ChatGPT Usage(openmeter.io ↗)

1 points · by hekike · 3y ago · discuss

12.

How to Implement Usage-Based Pricing with Stripe?(openmeter.io ↗)

3 points · by hekike · 3y ago · discuss

13.

How to Meter Execution Duration(openmeter.io ↗)

2 points · by hekike · 3y ago · discuss

14.

How do you meter execution duration for billing?

2 points · by hekike · 3y ago · discuss

comment 3y ago · link · parent

In the meantime, we looked more into metering and metrics and shared some thoughts here: Usage Data: Auditable or Operational https://news.ycombinator.com/item?id=36616364

16.

Usage Data: Auditable or Operational(openmeter.io ↗)

4 points · by hekike · 3y ago · discuss

comment 3y ago · link · parent

Internal usage is basically Cloud Unit Economics: https://www.finops.org/wg/introduction-cloud-unit-economics You treat infra teams as providers and price-in their services. For example you may price Compute team by "selling" vCPUs, DB team by selling GB stored per month and product team per business transactions. Each team builds on top of each other and buys a service from their downstream provider. Like product team buys DB storage, DB team buys vCPU to run DB etc. If you price in these internal resources (rate cards) and track usage you can attribute cost to each team based on their consumption. These internal bills together equals to the total company wide AWS bill. This not just creates accountability for teams but you can also do margin analysis and tell if certain team's product is profitable. Engineers can also plan future services and architecture by estimating cost like, new service will store 1TB/day which will cost X and then business/PMs can make decision based on it. It's a also a great way to optimize cloud cost beyond obvious isolated things like upgrading instance types as it tells you where optimization needs to happen, which provider need to lower their cost to increase margins.

comment 3y ago · link · parent

Very cool, thanks for sharing. I like this reporting approach, once you have the usage data aggregated somewhere a state machine is a great way to report usage to Stripe. Do you trigger the Inngest billing fan out end of the month CRON style or when Stripe changes billing period and triggers a webhook to Inngest?

comment 3y ago · link · parent

I think it's substantial risk for the core business. To be able to glue usage to invoice, Orb has to become the source of truth and billing engine top of Stripe, while Stripe is still the payment gateway. This creates a fragmented world where the customer has to use both systems simultaneously; this is challenging especially that Stripe ships features fast and frequently, leaving the customer exposed and vendor locked.

comment 3y ago · link · parent

Thank you for the honest feedback on the landing, appreciate it. Yes, we should make it more informative. Maybe docs is more useful in the meantime: https://openmeter.io/docs

comment 3y ago · link · parent

Great question. It has two components for OpenMeter: 1. My personal frustration when I had to do usage-metering at Stripe and wanting to have a standard for it, like how we have it for metrics. I also find it silly that every company trying to figure this out on their own. 2. We want to build usage collectors for common cloud components and third-party APIs and I think it's going to be easier to do it together as a community instead of working in silos.

But yes I agree, it's more challenging to build in open but I think it benefits the customer, the quality has to be there.

comment 3y ago · link · parent

It depends on your use-case. On a higher-level OpenMeter focuses on the data challenge to collecting usage data from infrastructure components on scale, and providing aggregated meters real-time. The other platforms you mentioned focuses more on billing with some metering component. For example Lago looks like writes all events to a relational database first than aggregates usage at query time when they do billing. Metering with a database has some limitation when it comes to scale or when you need to monitor meteres real-time and trigger actions based on them. I can see for example some combining OpenMeter with other billing platforms to have a scalable usage-based billing.

comment 3y ago · link · parent

Cool, thanks for sharing it. Would you use SaaS usage for cost analysis or to charge your own customers for shared resources?

comment 3y ago · link · parent

Those are all solid products for billing. Tough none of them are both open-source and have the scalability of streaming aggregation. Even Lago is AGPL which can be challenging for some.

comment 3y ago · link · parent

That's a great insight, thanks for sharing. Would it be the ideal solution code / config driven, something like: SELECT user, SUM(runtime) FROM usage => invoice_template(Z) Wdyt?

Btw how do you handle idempotency with time series? I think replays and least-once delivery in distributed systems can be challenging around usage collection if you don't have a key to deduplicate by.

comment 3y ago · link · parent

I like the idea of meter all primary business executions by default and pick what you want to use later. This is useful if you want to do cost analysis, iterate on pricing, etc.

Would you track API calls by default like a usage-based third-party (OpenAI API, Twilio, etc.)? Or your own web server (Lambda, Next.js etc)? Or both.

12