Skip to content

Commit a1d52ff

Browse files
authored
Revise Comers platform modernization details
Updated the description of the Comers platform modernization project, emphasizing the evolution of the system, integration of AI capabilities, and the transition towards a contract-driven architecture.
1 parent 512705a commit a1d52ff

1 file changed

Lines changed: 44 additions & 7 deletions

File tree

src/content/en-case-studies/commerce-platform-modernization.mdx

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This project concerns the modernization of **Comers**, a proprietary online sale
2525

2626
The system was originally built as an internal operational platform supporting a network of online stores operating across multiple European Union countries.
2727

28-
Comers serves as a centralized sales and integration system, enabling:
28+
Comers serves as a centralized sales and integration system that is still actively evolving. In addition to classic sales operations, the system now includes increasingly explicit module boundaries, background processing, and the first areas of operational AI support. The platform enables:
2929

3030
- integration of multiple online stores,
3131
- integration with marketplaces (e.g. Amazon, eBay),
@@ -36,7 +36,10 @@ Comers serves as a centralized sales and integration system, enabling:
3636
- service and warranty workflows,
3737
- product listing management,
3838
- invoice generation,
39-
- operational reporting and analytics.
39+
- operational reporting and analytics,
40+
- translation and handling of message threads,
41+
- operator support when preparing customer replies,
42+
- operational use of AI through explicit contracts and domain tools.
4043

4144
Comers is multi-organization by design. Within a single instance, multiple organizations can operate independently, each with:
4245

@@ -75,7 +78,7 @@ The system was not an experiment. It was a real operational tool supporting sale
7578

7679
## Why Modernization Is Necessary Today
7780

78-
After a decade of growth, the system reached a natural architectural inflection point.
81+
After a decade of growth, the system reached a natural architectural inflection point. Modernization is no longer only a target plan — some of the new boundaries, background processes, API layers, and AI mechanisms are already running in the active platform runtime.
7982

8083
### 1. Growing integration density
8184

@@ -181,14 +184,14 @@ The transformation is being carried out under live production conditions.
181184

182185
### Phase 5: Operational AI support
183186

184-
Over the long term, the system will be extended with an AI-assisted decision-support layer.
187+
Originally, AI was treated as a long-term development direction. Today, the first operational AI layer has already been implemented in selected areas, especially communication, translation, reply handling, MCP tools, and the capability gateway.
185188

186189
AI will:
187190

188191
- operate exclusively on explicit contracts,
189192
- generate recommendations and summaries,
190193
- support operational decisions,
191-
- remain an augmentation layer rather than an execution authority.
194+
- remain an augmentation layer rather than an uncontrolled bypass of system logic.
192195

193196
---
194197

@@ -222,6 +225,39 @@ Work completed so far includes:
222225
- introducing CI/CD pipelines and preparing for containerization,
223226
- refreshing selected parts of the user interface.
224227

228+
### Latest stage: contract boundaries, AI, and runtime
229+
230+
In the next phase, modernization moved beyond organizing selected modules inside the monolith. The system started evolving toward a contract-driven architecture in which the legacy application, internal APIs, the Core API layer, AI tools, the gateway, and background processes have increasingly explicit responsibilities.
231+
232+
The most important new areas of work include:
233+
234+
- extracting the `activities` area through the `activities/v1` API, a read model, and the `activities_current` projection,
235+
- moving activity history toward an append-only audit log without classic record updates or deletes,
236+
- creating a new `orders` boundary for external order synchronization, eBay Fulfillment data, shipping deadlines, and read access through Core API and MCP,
237+
- extending the `messages` module with thread and thread-list translation, user language preference, a translation worker, and AI support for suggesting and composing replies,
238+
- extending the existing `notifications` module with a Core API facade and MCP tools operating in a specific user context,
239+
- implementing the first operational AI layer with separate repositories for the webapp, BFF, ChatKit runtime, MCP, and AI gateway,
240+
- introducing `comers-ai-gateway` as an internal capability layer for `translate.v1` and `compose_reply.v1`,
241+
- moving runtime definitions into dedicated infrastructure repositories: `comers-infra-ai` and `comers-infra-legacy`.
242+
243+
In practice, this means Comers is no longer only a modernized monolith with several new modules. It is an actively evolving operational platform where new features and new types of consumers are connected through explicit contracts instead of direct access to older application logic.
244+
245+
### Real AI capabilities at the current stage
246+
247+
In the latest stage, the AI layer stopped being only a future direction. The system now has an operational assistant that uses explicit contracts and controlled domain tools.
248+
249+
The assistant can answer questions based on real system data and perform selected actions. It can read customer message lists and details, notifications, order information, and the activity log. It can also mark messages and notifications as read and move them to the archive.
250+
251+
The messages module is especially important. Comers supports translation of threads, titles, and conversation lists into a selected language, remembers the user’s language preference, and runs translations in the background. AI can suggest a reply to a customer based on the conversation context, as well as improve, structure, and translate a draft prepared by an operator into the customer’s target language.
252+
253+
These features were not added as a loose integration with an AI model. They are embedded in the architecture through `comers-ai-webapp`, `comers-ai-bff`, `comers-ai-chatkit`, `comers-ai-mcp`, `comers-core-api`, and `comers-ai-gateway`. As a result, AI operates through APIs, tools, and capability contracts instead of direct access to legacy models.
254+
255+
### Readiness of selected modules for extraction
256+
257+
More and more areas of the system now have their own boundaries, contracts, APIs, read models, ports, adapters, and separate runtime processes. This is especially visible in `messages`, `activities`, `orders`, `notifications`, `shipping`, and marketplace integrations.
258+
259+
This means modernization is no longer only about organizing code inside the monolith. Selected modules are increasingly close to technical readiness for extraction into independent services, because new system consumers can use explicit contracts instead of internal legacy models.
260+
225261
### Selected Comers platform views
226262

227263
<GalleryLightbox
@@ -310,14 +346,15 @@ Full technical change log:
310346

311347
## Current State
312348

313-
The system remains fully operational.
349+
The system remains fully operational and continues to evolve. Its current state sits between a modular monolith, a contract-driven architecture, and the first separated runtimes supporting new capabilities.
314350

315351
Modernization is incremental:
316352

317353
- boundaries are being formalized,
318354
- contracts are being strengthened,
319355
- new modules with explicit boundaries are being developed,
320-
- additional extraction candidates are being prepared.
356+
- additional extraction candidates are being prepared,
357+
- new layers such as Core API, MCP, BFF, and the AI gateway are being developed as controlled access points to system domains.
321358

322359
Some of the key transformation elements have already been implemented and are described in the section above.
323360

0 commit comments

Comments
 (0)