Architecture

Designing for Scalability

Architectural patterns for building scalable Oorian applications.

M. WarbleJuly 9, 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.

Related Articles

Security

Security by Default: How Oorian Protects Your Applications

January 11, 2026
Announcement

Why We Built Oorian: The Story Behind the Framework

January 7, 2026
Tutorial

Getting Started with Oorian: Your First Java Web Application

December 31, 2025