There is no such a thing as cross-service ViewModel Composition header image

There is no such a thing as cross-service ViewModel Composition

At a first look it might sound reasonable to use ViewModel Composition to allow services to talk to each other. Why not allowing services to share complex data structure composed at runtime? Let me put it simple: you don't want a distributed monolith!
Continue reading...

Upcoming event • 27-29 March 2019

I'll be at NDC Copenhagen 2019, DGI-byen, Copenhagen. We'll talk about:
  • All our aggregates are wrong
  • 2-Days Workshop: SOA Done Right (with examples in ASP.NET and NServiceBus)

ViewModel Composition: show me the code!

Time was spent discussing ViewModel Composition concepts and their design. It's time for some code. Let's see Single Item Composition in action: how does the code look like?

Into the darkness of ViewModels Lists Composition

ViewModels Lists composition has an interesting challenge: must be designed in such a way that it doesn't flood servers with tons of requests. Number of requests cannot exceed the number of services involved in the composition process, no matter how many items are composed. There is a light at the end of the tunnel (cit.)

The Services ViewModel Composition maze

ViewModel Composition can be scary, at a first look. The real world, we deal with every day, is complex as the information we manage are complex. Do we need to manually craft dedicated solutions or can we extract reusable patterns? There is always an exit to the maze.

What is Services ViewModel Composition, again?

Building distributed systems requires facing an interesting challenge: there is a dichotomy between the way behaviors and data are decomposed at the backend and the way users expect to consume them from the frontend. Services ViewModel Composition techniques are designed to help us overcoming this dichotomy.

I'm a procrastinator. I fail at To-Do lists.

I tried to-do lists many many times, and after a while I always failed. Being a procrastinator doesn't really help when it comes to to-do lists. Here is my reasoning on the root causes of the problem and how I decided to fix it.

Once upon a time...

I used to write 3 posts every week (on my Italian blog). Then she joined our lives and everything changed, from priorities to free time. Exactly a year later, so happy first birthday my love, I decided that it’s time to get back to that experiment.