Architecture

Designing for Scalability

Architectural patterns for building scalable Oorian applications.

M. WarbleMay 21, 20261 min read
Designing for Scalability

As your application grows, scalability becomes critical. This article covers patterns for building Oorian applications that scale well.

Choose the Right Communication Mode

AJAX scales easiest—no persistent connections. SSE and WebSocket require session affinity for horizontal scaling.

Minimize Session State

// Bad: Storing large objects
private List<Customer> allCustomers;  // Could be thousands

// Good: Store IDs, fetch on demand
private Long selectedCustomerId;

private Customer getSelectedCustomer()
{
    return customerService.findById(selectedCustomerId);
}

Use Server-Side Pagination

grid.setRowModelType(RowModelType.SERVER_SIDE);
// Only loads data as needed

Horizontal Scaling

  • Use sticky sessions for SSE/WebSocket pages
  • Share session state via Redis or similar
  • Design stateless services

Conclusion

Scalable Oorian applications choose appropriate communication modes, minimize session state, and use pagination for large datasets.

Share this article

Related Articles

Architecture

Event Handling in Oorian

February 19, 2026
Architecture

The Power of Pure Java Web Development

January 29, 2026
Architecture

Understanding Oorian's Flexible Communication Model

January 15, 2026