Service-oriented architectures typically have many common components, such as authentication and logging. It's desirable to reuse these components across services, but it's not always easy to structure the code in a way that allows this. Fortunately, functional programming itself can provide us with all the tools necessary to achieve this goal. In this talk I will explore some key design patterns and types which will be brought together to create a complete service architecture, end to end.
Jamie will show how to compose abstract service components by exploiting two core functional concepts of the Monad Type Class and the Natural Transformation. With these components, concerns such as transactionality, asynchronicity and failure handling can be deferred or altered without any impact on your core logic. By making minor changes in our integration layer we could transform an in-memory session handler to persist to a transactional database, make an email dispatcher non-blocking, or introduce event sourcing on a key-value repository.
YOU MAY ALSO LIKE:
- Lightning Talks 1 (SkillsCast recorded in December 2015)
- Domain Models in Practice with Marco Heimeshoff (Online Workshop on 6th - 10th June 2022)
- Domain-Driven Design in Practice with Michael Plöd (Online Workshop on 20th - 22nd September 2022)
- F# eXchange 2022: Online (Online Conference on 25th - 26th October 2022)
- iSAQB Software Architecture Gathering — Digital 2022: 2-Day Sessions Ticket (Online Conference on 16th - 17th November 2022)
- WebAssembly for Java Developers (Online Meetup on 8th June 2022)
- Software Architecture in a DevOps World (SkillsCast recorded in February 2022)
- A Conceptual Introduction to Nix for Haskellers (SkillsCast recorded in November 2021)
Functional Service Oriented Architecture
Jamie is a senior developer in Concentra's Product Development Team. Having spent the last 4 years developing services in Scala, Jamie has been focused on taking service orientated architecture patterns into the functional space. Hailing from a background in maths, he seems to take a perverse pleasure in finding new ways to abstract problems. Most of his work is in back-end services and modelling.