Skip to main content

5 posts tagged with "Scale"

How Framework M handles scale operations and high-traffic environments.

View All Tags

The Evolution of Pluggable Tree Strategies: From Nested Sets to Recursive CTEs and Beyond

· 5 min read
Revant Nandgaonkar
Maintainer of Framework M

Hierarchical data is everywhere in business applications—from organizational charts and product catalogs to tasks, nested comments, and ledger accounts. Yet, representing tree structures in a relational SQL database is a classic engineering trade-off between write performance, read complexity, and storage overhead.

In this article, we'll walk through the evolution of tree strategies in Framework M: how we moved from a Frappe-inspired Nested Set model to a pluggable Strategy Pattern supporting recursive CTEs, and how this architecture paves the way for specialized document and graph repositories.

Stateless HA Scheduling: Solving the Leader Election Problem at the Broker Layer

· 7 min read
Revant Nandgaonkar
Maintainer of Framework M

In modern web development, background jobs and scheduled tasks are the backbone of asynchronous operations—handling everything from daily email reports to outbox processing and periodic data cleanups.

However, running scheduled tasks (cron jobs) reliably in a clustered, high-availability (HA) environment is a notoriously difficult problem. Traditionally, developers have had to choose between heavy distributed locking protocols or complex, stateful leader-election daemons.