24. Multiple Backend Services

The Problem

An ERP frontend may consume Auth, Sales, Inventory, and other backend services with different base URLs and security rules.

The Angular Difficulty

Angular can use separate injectable API services, but mapping component paths to backend services and their policies is still an application architecture concern.

Angular Approach

constructor(
    private salesApi: SalesApiService,
    private inventoryApi: InventoryApiService
) {}

load() {
    this.salesApi.orders();
    this.inventoryApi.items();
}

MS Approach

ManySet provides a direct runtime-oriented approach for this recurring business-application task.

const sales = await ms.http.get("Sales", "/orders");
const stock = await ms.http.get("Inventory", "/items");
// Service mapping and security policy can be declared in GlobalConfig.json.

Why this way is useful in business applications :

The comparison is intended to show where ManySet supplies a business-application abstraction around a recurring task, while keeping HTML and JavaScript visible and directly usable.

Key Point :

ManySet reduces the amount of framework-specific composition required for this particular task, without requiring the React/Angular mechanism to be represented as inherently wrong or incapable.