OneSys

Architecture comparison

Where the logic lives decides speed, cost and security.

Many business applications spread their business logic across user interfaces, web services and several separate systems. OneSys bundles it in the database. Here you can see what that means in practice.

Diagram

Two architectures side by side

Conventional: logic scattered across several layers and systems

User interfaces

  • Online shopRule
  • POSRule
  • Back officeRule
  • AppRule

Web services and application servers

  • Customer serviceRule
  • Order serviceRule
  • Pricing serviceRule
  • Interfacesopen

Databases – storage only

  • CRM data
  • ERP data
  • Shop data
  • Rule the same business rule, programmed several times
  • open additional entry point from outside
OneSys: logic central in the database, user interface built from tables

End devices – display only

  • Online shop
  • POS
  • Back office
  • App

Web service – auxiliary services

  • Documents
  • E-mail
  • Interfaces
  • Encryption

Database (PostgreSQL) – the heart

  • Business logic
  • Screens as tables
  • Data and history
  • Tenants separated
  • One rule – maintained once, applied the same everywhere

Conventional architecture

How many ERP, CRM and online shop solutions are built

A layered design is common: the user interface is programmed separately for each screen. Below it sit web services or application servers, whose program code contains the business rules. The database mainly serves as storage. CRM, ERP, POS and online shop are often separate products that exchange data via interfaces.

This design is widespread and proven for many purposes. However, as soon as several systems need the same data and rules, typical weaknesses appear – regardless of the vendor.

We describe general architecture patterns here, not specific products or vendors.

Weaknesses

Seven typical weaknesses – and how OneSys answers them

Duplicated and contradictory business rules

Conventional

The same rule – such as a discount, tax rate or availability – is programmed separately in the online shop, the POS, the back office and several services. If it is changed in one place and forgotten in another, the systems calculate differently.

OneSys

The rules live as functions in the database. The back office, app and online shop send their commands to the same entry point and therefore calculate with the same logic.

Every change needs programmers and a release

Conventional

Screens, fields and workflows are buried in the program code of the user interface and the services. A new field means changes in several layers, testing, a new software release and its rollout.

OneSys

Screens are data: every field, every button and every action is a row in a screen table. The end devices contain no hard-coded screens and load each screen when it is opened – a change takes effect without a new software release.

Many network calls make it slow

Conventional

A screen first fetches the list, then the details for each row (the “N+1 problem”), and each layer calls the next one again. Every call costs waiting time – with many rows this adds up noticeably.

OneSys

Several function calls travel in a single request; screen and data come back in one response. The calculation happens in the database, and only the results travel over the network.

Data contradicts itself between systems

Conventional

CRM, ERP and online shop keep their own copies of customers, articles and stock levels. Reconciliations run with a delay or fail – and then the shop shows stock that the warehouse no longer has.

OneSys

All modules work on one shared database. There are no copies that need to be reconciled; each company is kept in its own, separate table areas.

Security gaps at the interfaces

Conventional

Every interface between separate systems is another entry point with its own login and its own checks. Where queries are assembled from text, SQL injection is a risk; where a check is missing, data is exposed.

OneSys

There is one central entry point in the database, which receives the tenant, user and session with every call. The command is passed as a bound parameter, not concatenated into SQL text; connections run over HTTPS.

High maintenance and licence costs

Conventional

Several products mean several licences, maintenance contracts and update cycles. With every update of one system, the interfaces to all the others have to be checked and often adapted.

OneSys

One system instead of many: CRM, ERP, inventory, invoicing, POS and online shop share the database and the logic. The database is PostgreSQL – open source, with no database licence fees.

Vendor lock-in

Conventional

If data is stored in proprietary formats and the logic in closed program code, every adjustment and every migration depends on the vendor. Switching becomes expensive and risky.

OneSys

Data and logic are kept in an open standard database and can be read with SQL. Exports, interfaces and data migrations are built in from the start.

Comparison

Conventional layered architecture and OneSys at a glance

AspectConventional layeredOneSys
Location of the business logicSpread across user interface, web services and separate systemsCentral, as functions in the database
Screens and fieldsProgram code for each screenRows in screen tables, loaded at runtime
New fieldChanges in several layers, testing, release, rolloutCreated in the GUI designer, no new software release
Calls per screenOften many individual calls (list, then details for each row)Screen and data in one request
Data storageSeparate copies per system, reconciliation requiredOne shared database for all modules
Entry points from outsideMany interfaces with their own checksOne entry point with tenant, user and session
DevicesContain their own logic and have to be updatedDisplay only, no logic of their own
DatabaseOften licence-based, frequently used only as storagePostgreSQL, open source, the core of the system

Everyday examples

What a change means in each case

Simplified, typical workflows – the exact steps depend on the system in question.

Adding a new field

Conventional

  1. Add a column to the database
  2. Extend the data class and the web service
  3. Adapt the interfaces to other systems
  4. Program the screen
  5. Test, build a new software release and roll it out

OneSys

  1. Create the property or field in the GUI designer
  2. Done: the field is available on all devices the next time the screen is opened – without a new software release

Changing a pricing rule

Conventional

  1. Adjust the rule in the online shop
  2. Adjust the rule in the POS and back office
  3. Check dependent services and interfaces
  4. Test and roll out each system separately
  5. Risk: one system is forgotten and calculates differently

OneSys

  1. Change the function in the database once
  2. Every user interface that calls it uses the new rule from the next call onwards

Opening a customer list with sales figures

Conventional

  1. Load the screen from the server
  2. Fetch the customer list
  3. Query the sales figures for each customer individually
  4. With 100 customers, more than 100 calls

OneSys

  1. One request returns the screen and the fully calculated list
  2. The database calculates the sales figures directly while reading

Verifiable

Figures from the live system

Collected from the OneSys database, as of November 2026.

  • 1central entry point for all commands
  • 66business areas with their own logic in the database
  • 3.000+functions containing business logic in the database
  • 468screens, described in tables instead of program code

To be honest

What the OneSys approach requires

Logic in the database requires careful database development: suitable indexes, measured query times and clear rules for every function. This is exactly what OneSys is designed for – queries are built for index access, and read times above one second are specifically reworked.

Do you already have a system that has become slow or whose logic is scattered across many services? Our sister brand datatrend analyses and optimises databases and migrates them to PostgreSQL.

More about the technology in the FAQ.