LOADING

Anti-corruption layers through functional type safety

This presentation describes the development of a financial middleware that internationally connects several ERP systems (Navision and SAP) to a cloud-based invoicing solution.

Jan Ypma
About This Talk

The world of financial ERP integration is a curious landscape, with high-tech startup hilltops, dotting vast valleys which are seemingly still celebrating the discovery of the wheel. An added complexity is that every financial valley and hilltop has their own language and idea of what constitutes an "invoice" or "order". Combined with communication roads often being closed, integration can be a challenge indeed.

This presentation describes the development of a financial middleware that internationally connects several ERP systems (Navision and SAP) to a cloud-based invoicing solution. Both the invoicing service and the ERP systems pose integration challenges, due to a combination of API mismatches and stability issues. Still, a goal of this middleware was to provide added value by having a useful financial representation across all countries.

A solution was found in careful application of existing data model standards for electronic business documents (UBL), forming an Anti-Corruption Layer as known from Domain-Driven Design, which allows the middleware to present a more straightforward, and reliable, integration target than the invoicing service can. This also allowed for an increased separation of concerns, allowing integration decisions for the ERP systems to reside in different components.

The middleware is developed in Scala, using Akka and ZIO as underlying frameworks, exposing a streaming REST API. It is demonstrated how ZIO's advanced type system has helped prevent classes of errors. Kafka is used as intermediary storage. The system running in production processes over 1000 invoices per day across 6 countries.

more great talks

Might Be Interesting

Day 2
  —  
11:30 am
arrow pointing right icon

Implementing multithreading in Scala Native or a story of 201 little pains

Listen to a story of how we have dealt with 201 obstacles allowing us to run multithreaded programs natively!

Day 2
  —  
12:00 pm
arrow pointing right icon

Looking beyond the scope: Scala application from an external lens

Join me in a talk empowering you to build Scala applications that not only excel internally but also deliver optimal experiences from an external perspective.

Day 1
  —  
12:00 pm
arrow pointing right icon

Hands-on Besom: Infrastructure-as-Code with Scala

In my talk I will guide you through a deployment of a complete AI-based web service using Besom, Scala SDK for Pulumi.

Day 1
  —  
5:30 pm
arrow pointing right icon

Generative Art with Scala, No AI Required

In this talk, we will demonstrate some elegant applications of functional programming in Scala, with even more elegant visual results - all with live code and real-time output.

See All Events
Join us!

We're looking for amazing speakers.
CFP is open till 10.01.2023

Fill in Call for Papers
location icon

Location

Centrum Konferencyjne POLIN, Poland
stay in touch icon

Follow Us

Contact Us