r/JavaProgramming • • 25d ago

Pmitz: open-source plans and usage limits, embedded in Java or exposed through REST

I’m working on Pmitz, short for Plans and Limits. It handles which features a subscription includes, how much someone can use them, and recording that usage.

The idea is to avoid scattering subscription checks throughout your app and having to revisit them whenever your plans change. For example, a customer’s plan might include a feature with a monthly allowance. Pmitz can check feature access and the usage limit together.

You can embed it directly in a Java application or run it as a separate REST service. Embedding avoids the HTTP call, although there’s still database work. The separate service lets multiple apps share the same plans and usage data.

We also offer a managed version where we handle hosting and maintenance, but the open-source code is here:

https://github.com/terpomo-io/pmitz

I’d be interested in feedback on the Java integration and what’s missing for your use case.

2 Upvotes

3 comments sorted by

2

u/PinAdorable3380 18d ago

Clear usage tracking can simplify subscription management.

1

u/[deleted] 25d ago

[removed] — view removed comment

1

u/hlreb2210 24d ago edited 24d ago • Bravo

Hi Pmitz team member here, Thank you for taking the time to look at how Pmitz works.. Yes, check and record is done in one call. Great suggestion about the Spring Boot starter. We're already working on it. If the plan changes, nothing happens to usage record. It remains unchanged, and still will be used to check if limits have been reached.