Hacker Newsnew | past | comments | ask | show | jobs | submit | more Koshima's commentslogin

Appreciate that, and glad Flexprice showed up at the right time. We’ve seen the same pattern: credit systems always look simple with one plan, but as soon as you introduce volume tiers, expirations, or promo logic, it turns into fragile code fast.

We’re building Flexprice specifically to avoid that constant rewrite cycle, good to know it resonates. Happy to chat if you run into edge cases while scaling those new plans.

Good luck with your GenAI launch!


Appreciate it. We enforce idempotency at the event level using client-provided deduplication keys, so even with high concurrency or retries, the billing pipeline stays consistent.

For internal retries, we batch in-memory and attach unique IDs before dispatch to avoid double-counting.


Great question!

Our approach focuses on: - Fire-and-forget ingestion with in-memory queues so events don’t block product requests - Strict idempotency tokens tied to every event, enforced at the API layer - Lightweight retry logic that prevents double-counting but guarantees delivery under transient failures

Storage-wise, we’ve leaned on a mix of time-series DBs for raw events and pre-aggregated summaries for billing views.

Would love to swap notes on failure patterns or queue setups if you’ve dealt with similar scale.


One thing we’re handling differently is entitlements. Most billing tools stop at metering and invoicing, but they don’t track what features or limits a customer can actually access based on their plan, usage, or credits. We’re building that into the system so your app doesn’t need to maintain extra state for feature flags or usage limits.


I am building Flexprice, an open source metering and billing platform for AI and agentic-based companies. I've recently published a guide showing how to replicate Clay's credit-pricing model.

This guide includes: - Configuring recurring credit grants (e.g., 100 credits/month) - Capping rollover at 2× monthly allocation - Real-time metering (e.g., 10 credits to create a table; 1.5 per-row on enrichment) - Monthly vs annual billing models, credit expiry rules

This addresses a challenge many SaaS/AI/API products face: building transparent, usage-aligned pricing that’s easy to iterate on.

Would be grateful for HN feedback especially around edge cases or UI/UX when exposing credit consumption to users.


This is super helpful!

Really like the direction Flexprice is going. Excited to see more OSS approaches in the billing space, it’s long overdue.


This is really cool! Building a browser engine from scratch is no small feat, especially when handling complex CSS features like calc(), var(), and percentage units. It’s a great way to learn the inner workings of the web.

Curious about your approach to the networking stack. Are you planning to support more protocols like HTTPS or WebSockets in the future, or is the focus more on keeping this lightweight and minimal for now?


not sure why but I think now school and colleges should promote students to use the new-age technologies. Using ChatGPT, they can shorten the time to research and do groundwork instead!


I’ve noticed this as well. It’s surprising how often the true value of certain high-quality items isn’t obvious until you’ve experienced them firsthand. It’s not just about status, but often about longevity, comfort, or simply a better user experience.

For example, things like handmade leather shoes, solid wood furniture, or even high-end kitchen tools like Miele or Sub-Zero appliances can feel like overkill until you’ve actually used them. Then you start to appreciate the craftsmanship, the reduced hassle, and the longevity they offer.

Curious if others have had similar experiences – what’s one “expensive” item that genuinely changed your perception once you owned it?


I live in a developing Asian country so the numbers and brands in the equation are a bit different.

Anyway:

1. Good midrange Japanese cooking knives. I got one on a steep discount, and now I understand why people pay a premium for them. I even bought a second one.

2. Good brands of Chinese engineering equipment. I bought a Siglent oscilloscope instead of a Hantek / Uni-T one. Before that, I had only bought the cheapest tool sufficient for the job.

I found as I've reached middle-age, I just have a bit less energy to spend struggling with things I use daily. So in these roles I appreciate something that's better quality than I strictly need. I don't come from wealth, and am a notorious cheapskate even by local standards -- but those two things were able to change my mind!


My theory is that the appliance market has developed a low cost tier of products that are poorly developed and produced. This tier of products have minimal quality standards and the thinking is the the consumer will replace it or move.

I had to purchase appliances for apartments and the first wave of products were breaking within a couple of years. I ended up purchasing appliances from high-end European companies in the second wave of appliances and haven't had issues for 3 years. The original ovens had 3 out of 5 failures before people moved in. 2 of them broke because the flimsiest plastic door latch protruding about 1" from the door broke. The doors of the oven could be removed with no tools. The company said they could send me new doors for a cost and that I could schedule a video call with the factory to learn how to re-install an oven door.


Appliances have several different class and price is not a good indication of what class things are in. Cheap apartments want the cheapest appliances that will last and those people have the accountants to figure out what those are. However right next to the cheap appliances that last are cheap appliances that won't and often there is nobody that will tell you which is which. The you get into the mid range, where again there is junk and good stuff right next to each other. At the highest prices quality goes down just because there are not enough sales to figure out what is going to break and update the design in the early part of the sales cycle to fix issues.


I agree there are tiers. I don’t believe the tier indicates quality. GE makes great appliances but I think the parts are engineered to last for x number of years rather than the life of the product.

I also doubt my accountant could answer appliance quality questions. The could probably give a depreciation table.


The thing is if you are wealthy you do not notice these things. They are just there. The luxury / highend items become a commodity. That's the minimum standard that you expect wherever you go.

Also these things are not really that expensive compared to 5-10M person.

Try Bora coocktops


You’re definitely not the only one. I’ve seen a few discussions recently about unexpected billing for GitHub’s “code security” features. It seems like the feature gets auto-enabled without clear communication, and turning it off isn't straightforward.

One thing you can try is reaching out directly to GitHub support via their official Twitter account. Sometimes their social media team responds faster than traditional support. Also, check if any new team members or integrations could have triggered the feature.


It's fascinating how much body language and facial expressions differ across cultures. While some societies value open, expressive interactions, others lean toward reserved or neutral expressions. I’ve noticed this in my travels, a simple nod or slight smile can mean very different things depending on where you are.

I wonder if these cultural norms around eye contact and facial expressions have roots in deeper societal structures, like the emphasis on individualism vs. collectivism, or even the pace of life in different regions.

What do you think? Could these small, often overlooked gestures reflect much larger cultural attitudes?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: