repowisekillbill/killbill

Architecture of killbill/killbill

killbill/killbill is 1,812 source files holding 16,517 symbols across 16 modules, written mainly in Java, JavaScript. The largest module is util, with 400 files, and 76 files are entry points into the dependency graph.

How killbill fits together

Requests enter through the jaxrs module, where classes such as jaxrs/src/main/java/org/killbill/billing/jaxrs/resources/AccountResource.java map HTTP calls onto billing operations. The api directory defines shared contracts, including api/src/main/java/org/killbill/billing/callcontext/InternalCallContext.java, which carries tenant and call context through each operation. The core work happens in domain modules: subscription/src/main holds subscription state, catalog/src/main is the source of truth for products, plans and prices, and the invoice and payment modules produce invoices and payment records. Components communicate through internal bus events defined in api/src/main/java/org/killbill/billing/events/BusInternalEvent.java.

Largest modules

  • util: 400 files and 25,024 lines of code
  • invoice: 220 files and 32,219 lines of code
  • payment: 188 files and 24,639 lines of code
  • catalog: 157 files and 14,415 lines of code
  • jaxrs: 148 files and 21,872 lines of code
  • api: 116 files and 2,484 lines of code
  • subscription: 111 files and 14,146 lines of code
  • beatrix: 107 files and 24,592 lines of code

Languages

By file count: Java 1,694 files, JavaScript 12 files.

Documentation

Repowise documents killbill in 1,804 pages generated from the source, 44 of them written explanations of the repository and its modules.

More on killbill: summary and FAQ, codebase overview, code health.