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 React Difficulty
React does not centrally map component paths to backend services. Applications generally build their own API clients and configuration layer.
React Approach
const salesApi = axios.create({ baseURL: "/api/sales" });
const inventoryApi = axios.create({ baseURL: "/api/inventory" });
await salesApi.get("/orders");
await inventoryApi.get("/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.