<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Einar Ingebrigtsen on Medium]]></title>
        <description><![CDATA[Stories by Einar Ingebrigtsen on Medium]]></description>
        <link>https://medium.com/@EinarI?source=rss-193494567bc9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MUPYsiKgI6QyInKJ6ojWDQ.jpeg</url>
            <title>Stories by Einar Ingebrigtsen on Medium</title>
            <link>https://medium.com/@EinarI?source=rss-193494567bc9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 04:08:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@EinarI/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[EDA — The paradigm shift we’ve been waiting for]]></title>
            <link>https://medium.com/@EinarI/eda-the-paradigm-shift-weve-been-waiting-for-e67d8fca5e66?source=rss-193494567bc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e67d8fca5e66</guid>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[the-platform]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Einar Ingebrigtsen]]></dc:creator>
            <pubDate>Fri, 29 Nov 2019 17:42:52 GMT</pubDate>
            <atom:updated>2019-11-29T17:42:52.427Z</atom:updated>
            <content:encoded><![CDATA[<h3>EDA — The paradigm shift we’ve been waiting for</h3><p><a href="https://www.martinfowler.com/bliki/TwoHardThings.html">Phil Karlton once said; there are only two hard things in Computer Science: cache invalidation and naming things</a>. I want to add one more thing to that list: versioning. At Dolittle, we work hard at making it easier to write software, not so much the actual writing part as a focus — although we believe we bring a lot to the table for that as well, but much more on the maintainability aspect. Once the software is written and put in the hands of users, that is when the fun begins. Your code gets tried and tested and also gets input from the users with all the changes they want to your system for it to be useful for them or add more business value to their businesses. I digress, let’s focus on what this article is really about — Event-Driven Architecture.</p><h3>Events != Events</h3><p>Words have meaning and meaning depends on the context. “Event” has been used in different contexts to describe what are really unrelated concepts. It is not an unambiguous term and comes with a load of conceptual baggage. For instance, when talking about IoT technology — events are the messages coming out of sensors. We then use technologies like Kafka, Microsoft’s Azure Event Hub, Event Grid or Azure IoT Hub to cater to the need of collecting these messages and transporting them. The IoT scenarios often are fed into the concept of Big Data, and one talks about events occurring with a very high resolution, potentially thousands a second. At Dolittle, those are not what we constitute as events; we actually call them data-points in a TimeSeries as a consequence of measurements done on a sensor. Its resolution or velocity should be decided by the consumer since the producer really produces based on it being asked. What we typically do with these data-points is to observe them. While when we talk about events at Dolittle, we talk about domain events — or <a href="https://www.gartner.com/smarterwithgartner/adopt-event-centric-it-for-digital-business-success/">business events</a> or even <a href="https://www.gartner.com/smarterwithgartner/the-rise-of-the-business-moment/">business moments</a> as Gartner also calls them.</p><blockquote>«In the context of digital business, “business events” could be anything that is noted digitally, reflecting the discovery of notable states or state changes, for example, completion of a purchase order, aircraft landing and room noise-level signal are all digitally reported events. Some business events, or convergence of events, form “<a href="http://www.gartner.com/smarterwithgartner/the-rise-of-the-business-moment/">business moments</a>“, a detected situation that calls for business action.»</blockquote><p>- Gartner</p><p>From this we can discern several notable features of a domain event:</p><ol><li>An event is something that happened. It is a fact.</li><li>It is something that is important to the business and is identified as such.</li><li>It usually records a state transition</li></ol><p>By understanding the distinction between domain events and timeseries events, you can start to see that the motivations and technical challenges for each are different. Thus they have different requirements and require different toolsets, both mentally and in terms of technology. Although you can probably achieve a lot with the same software used in the IoT scenario — you quickly realise that the technology is built for scenarios and scale that most line-of-business applications don’t really have. They’re born out of the necessity to deal with a high throughput of events, while most line-of-business applications generally really don’t have the volume of state changes. Line-of-business applications will be much less forgiving in terms of losing events or events being processed out of order.</p><p>We have already stated that domain events represent the state changes in your system. With this statement comes a great opportunity for thinking differently about how we approach state in our application. If we have a record of all the state changes that have occurred in our system, then the current state of our system is just the result of applying all these state changes, nothing more. Traditionally, this current state would be stored in a relational database and be considered “the truth” of our system. What if we don’t rely on regular databases for representing the truth in our systems? The traditional relational database, the constraining factor in distributed, scalable systems, is demoted from the key role as “source of truth” to that of performance optimisation: a cache. The truth can be stored in a specialised database for events; an event store. Gartner refers to this as an event ledger, drawing the obvious parallel with an accounting ledger. If you start feeling that this concept sounds familiar and has been part of the last couple of years hype; you’re right. It’s the same basic idea on which Blockchain rests. An event store or event ledger is simply an immutable log; storage mechanism that you’re only ever appending to. This approach changes how you need to think about building your software — but it opens up massive new opportunities and can reduce your business’ meantime to action.</p><h3>Event Management</h3><p>The last decade has been the age of APIs. Its been all about how we can get to the perfect APIs and how do we manage these in a good way with things like dealing with authorisation, scale, fault handling, DDOS attacks and good strategies for throttling and such. All this and more boils down to the concept of API management. When we now enter a new more reactive age; the age of events — we need to take the lessons from API management and create the patterns, tools and common understanding of what is needed to be successful when leveraging events. What we do know is that being successful with events, it is really not just about «fire &amp; forget» — you need to have a relationship with different aspects of it actively. Below are some of the things we believe in and work on for our platform.</p><h3>Streams</h3><p>We believe that a good event platform works on the concept of streams. A stream is simply a persisted, ordered series of events. The fact that the stream is persisted and ordered allows us to approach distributed development more confidently and rigorously. A stream of immutable, ordered events is infinitely cacheable. It also makes optimistic concurrency in a distributed system trivial.</p><h3>Event Types and Schemas</h3><p>How an event looks matters a lot in a domain/business thinking. What attributes it has, its name and meaning. This information is important and should be stored in a schema store for events.</p><p>There is a basic distinction between internal domain events and external integration events. In much the same way that you would not grant access for other applications to your internal database, you do not allow other applications to subscribe to your internal domain events. Your external stream of integration events is your contract to the outside world, your API.</p><p>Internal domain events are generally smaller, more focused events. The name should indicate not only what happened but why. The event should contain only the information that is needed. External integration events will generally contain more contextual information while having less specificity of why the event occurred. For example, a warehouse application is only interested in that a customer account has been suspended, not all the various reasons for which the customer account can be suspended — which the the Customer Management application cares about.</p><h3>Projections</h3><p>The ability to project from one or more events down to aggregations or specialised read models is critical, and also reactively do this whenever an event occurs. This ability is something that is supported by <a href="https://eventstore.org/">Event Store</a>, the event store we have chosen and are investing our time and effort into. In addition to the built-in projections, we make it easy to materialise a projection into a relational database or document database, to perform queries for the application on top. On top of that, we will make it extremely easy to store and maintain the projected results of streams in other databases, enabling ad-hoc queries and the use of existing BI tools and knowledge. Another aspect of projections is the ability to react to the changes in these projections and then perform actions in your domain.</p><h3>Versioning</h3><p>Remember I added a third problem to Phil Karlton’s claim: versioning. I would argue this is much harder than the two other problems combined. Sure, when versioning software, we have concepts like SemVer that helps us give meaning to versioning and helps us communicate it. But the actual versioning and making sure systems that are dependant on each other have a good way of being decoupled and not end up broken as a consequence of versioning issues. The widespread approach is to keep major changes of APIs around as either running instances or in the same codebase with different routes. With a managed event platform, we could be dealing with this differently; in fact, we could take some lessons from technologies such as active record and its migrations strategies. What if we could declaratively describe the differences between one version of an event and another. What if this could do an upcast and a downcast — leaving the event to be both backwards and forward compatible. In Dolittle, we call this migration and each version a generation.</p><h3>Processor Management</h3><p>Events need to be processed, for those scenarios when projections aren’t what you’re looking for or not enough — you need to respond and process events programmatically. These processors are processing events in streams and have an offset within a stream being maintained. Processors can fail for different reasons; it is, therefore, important to understand what that means. A processor can be quarantined, but not necessarily globally — but perhaps just for one particular event source, based on the id. This issue calls for tooling that gives the developer or owner of an application the insight into the problem and can understand the cause — either it is a code problem or a state problem for the system. When a problem has been solved, quarantined event processors should be possible to resume.</p><h3>Replaying</h3><p>When one claims that the event store/ledger is the source of truth, you also need a way to replay for different purposes. In a day to day operation, the scenario of replaying events towards a newly introduced event processor is what you do the most. This is a very different scenario from replaying to regain a transient state in a database. A good event-based system should make the distinction and implement easy support for both. The reason you want to formalise the difference is for multiple reasons, but a simple use case like sending out an email as a reaction to an event — once you’ve done that — you do not ever want to replay and do that again.</p><h3>Decentralised</h3><p>Although not a criteria for success with event-driven architecture, we at Dolittle believe that having an ambition of being decentralised for most of the things we do benefit the running environment in many ways. It increases reliability, reduces the need for a centralised piece that has its own scale rules and needs to be clustered. Instead; we spread the load across the different microservices and use a natural and formalised partitioning strategy for what is effectively a cluster of microservices — rather than a cluster of well-defined centrepieces.</p><h3>Caching</h3><p>As this article started off with; caching is a super complex problem — when do you know when to invalidate it. Is it an arbitrary expiration, do we do it on regular cadence? This is really one of the biggest promises of an Event-Driven Architecture, and the cache problem gets solved by actually knowing exactly when to invalidate it; when the event occurred. We can then leverage the cache in a reliable way and actually rename it and call it «current state». The current state will change all the time.</p><h3>Naming</h3><p>Of the two original problems described by Phil Karlton, we’re left with naming. Naming is hard, and if that is the only problem we have left — we’re in a good place; it should be hard. This is where you should invest your time — getting the language right for your software — the domain language. This is what Domain Driven Design is all about and something we at Dolittle strongly believe in and work equally hard to make it easier to write software adhering to the principles of Domain-Driven Design.</p><h3>How it all fits together</h3><p>At Dolittle, we take a holistic approach to what we do and makes painstaking efforts thinking about how it all should fit together. The figure below shows how systems built around our concepts uses business events, and how observational data-points thinking fits together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43ug22umSmx6ruiz5wf5tA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e67d8fca5e66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3.0.1 — Release notes]]></title>
            <link>https://medium.com/@EinarI/3-0-1-release-notes-d8b92b4a6ec3?source=rss-193494567bc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8b92b4a6ec3</guid>
            <category><![CDATA[the-platform]]></category>
            <category><![CDATA[release-notes]]></category>
            <dc:creator><![CDATA[Einar Ingebrigtsen]]></dc:creator>
            <pubDate>Mon, 13 May 2019 18:11:10 GMT</pubDate>
            <atom:updated>2019-05-14T07:32:40.728Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dolittle 3.0.1 — Release notes</h3><p>We’ve released a patch version of some of our frameworks. Full release notes for 3.0.0 <a href="https://medium.com/dolittle/3-0-0-release-notes-75ce2f03c8c6">here</a>.</p><h3><strong>.NET Fundamentals</strong></h3><p>We experienced some issues with the new build pipeline on Windows, which was listed as a known issue in our <a href="https://medium.com/dolittle/3-0-0-release-notes-75ce2f03c8c6">3.0.0 — release notes</a>.</p><ul><li>Permission denied on some occasions on Windows for the build pipeline <a href="https://github.com/dolittle-fundamentals/DotNET.Fundamentals/issues/220">#220</a></li></ul><p>This is now fixed.</p><h3>Runtime</h3><p>In the runtime we had an issue with our offset persistence for a ParticleStreamProcessor going between bounded contexts, this is now fixed.</p><ul><li>Wrong CommitSequenceNumber being persisted within the ParticleStreamProcessor <a href="https://github.com/dolittle-runtime/Runtime/issues/238">#238</a></li></ul><p>All the affected packages can be found <a href="https://www.nuget.org/packages?q=dolittle.runtime">here</a>.</p><h3>.NET SDK</h3><p>During testing of changes in fundamentals, we discovered that we were referencing the wrong NuGet package for our build system and got some bizarre error messages as a consequence. This is now fixed as well.</p><p>All the affected packages can be found <a href="https://www.nuget.org/packages?q=dolittle.sdk">here</a>.</p><h3>WebAssembly</h3><p>Similar as for the .NET SDK fix, we now have this covered here as well.</p><p>All the affected packages can be found <a href="https://www.nuget.org/packages?q=dolittle.interaction.webassembly">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8b92b4a6ec3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3.0.0 — Release notes]]></title>
            <link>https://medium.com/@EinarI/3-0-0-release-notes-75ce2f03c8c6?source=rss-193494567bc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/75ce2f03c8c6</guid>
            <category><![CDATA[the-platform]]></category>
            <category><![CDATA[release-notes]]></category>
            <dc:creator><![CDATA[Einar Ingebrigtsen]]></dc:creator>
            <pubDate>Fri, 10 May 2019 17:06:42 GMT</pubDate>
            <atom:updated>2019-05-14T07:14:30.677Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dolittle 3.0.0 — Release notes</h3><p>We just released version 3.0.0 of Dolittle across the board of our major components for .NET. This post walks you through what has changed and sparked a major version across all the repositories involved.</p><h3>Tooling</h3><p>A major part of building Dolittle applications is tooling and specifically the tooling for generating the metadata regarding your application. Due to our investment in WebAssembly, we needed to improve our build pipeline for MSBuild. We also pay a lot of attention to not being a major bottleneck to the build process in terms influencing the build time too much. Feedback loops are super important.</p><p>Since Dolittle is so modularized and decoupled, we needed a core build system that was pluggable in an automatic convention based manner.</p><p>This new pipeline is part of the reason for the major version. We have a package called <a href="https://www.nuget.org/packages/Dolittle.Build/">Dolittle.Build</a> which before 3.0.0 was part of the <a href="https://github.com/dolittle-runtime/dotnet.sdk">Dolittle .NET SDK</a>, which was fine except it broke the naming convention of assemblies coming out. Repurposing the name means a breaking change, so we decided that was the best. This do however have a massive consequence up the stack, since our Runtime is not completely isolated and is in fact also consumed as NuGet packages and the Fundamentals being at the bottom level, you basically have a cascade all the way through.</p><p>For any applications this now means you need to have the following package references to get the build going.</p><pre>&lt;ItemGroup&gt;<br> &lt;PackageReference Include=”Dolittle.Build.MSBuild” Version=”3.*”/&gt;<br> &lt;PackageReference Include=”Dolittle.SDK.Build” Version=”3.*”/&gt;<br>&lt;/ItemGroup&gt;</pre><h3>WebAssembly</h3><p>The thing that set in motion the cascade of changes is our <a href="https://github.com/dolittle-interaction/WebAssembly">WebAssembly support</a>. Our support is still very much a work in progress and we do have things that have yet to be implemented and also a bit of work to be left for optimization and improving the development story. But all in all we’re very happy with where we are and what we have got thus far. To get started, please read our <a href="https://dolittle.io/interaction/webassembly/getting_started/">getting started guide</a>. We also presented this at the London PWA meetup earlier this week as you can see <a href="https://skillsmatter.com/skillscasts/13836-going-enterprise-in-the-browser">here</a>. We also have a working ToDo sample that shows how to do a side-by-side server with WebAssembly solution <a href="https://github.com/dolittle-samples/ToDolittle">here</a>.</p><h3>Dolittle Folder</h3><p>The Dolittle build tools have a very specific job and that is to generate the metamodel for the application. It holds information about the artifacts and topology of any bounded contexts being compiled. This information is outputted into files that are being used at runtime and located inside a folder called .dolittle by default. This is now possible to override so that two projects, for instance a side-by-side scenario of regular application running on a server and a WebAssembly version. These will have two different entry point projects and want to have the same reference to the same projects and share the metamodel. This is now possible by adding a property to a PropertyGroup inside the .csproj file:</p><pre>&lt;PropertyGroup&gt;<br> &lt;DolittleFolder&gt;../Core/.dolittle&lt;/DolittleFolder&gt;<br>&lt;/PropertyGroup&gt;</pre><h3>Autofac</h3><p>Our Autofac support used to live as an <a href="https://github.com/dolittle-extensions">extension</a> in its own repository. With the effort going into the new build pipeline we had to move this down to <a href="https://github.com/dolittle-fundamentals/dotnet.fundamentals">Fundamentals</a>. The reason being that we wanted to build our build pipeline without compromise on our core principles and wanted to dogfood our own systems for discovery and other things we have in Fundementals. It was moved down, but without any change or coupling to Autofac within Fundamentals and other components. In fact, it is a promise from us not to couple to a specific IoC container within Fundamentals, Runtime, SDK or any other frameworks as we strongly believe that within an application you should be able to chose this yourself. Internally, we hardly ever notice or use anything from the IoC directly, just adhering to the Dependency Inversion principle and trusting the composition will happen.</p><h3>Performance Boost</h3><p>Very important this time around is a general performance boost. This is more a general theme and tiny pieces here and there that has been made faster and more optimal. In total this results in a significant boost in the startup time. This was sparked by a need to improve startup for our WebAssembly support and we’re seeing our startup time halved as a consequence, from ~5 seconds to around 2 seconds on development machines. On regular cloud / server scenarios, the boot is below 1 second and is not as noticable — but general feedback from projects using the new bits is that they are seeing the boost. This work will continue moving forward, as development machines are not a reference for what is being used by end users.</p><h3>MongoDB Collections</h3><p>A breaking change that was introduced in this version is how the naming of collections are generated when using the IReadModelRepositoryFor&lt;&gt; interface for read models. This used to be the name of the type of the readmodel, which turns out to be a very bad strategy if you have two different types with the same name representing two different collections only different namespaces. Right now the strategy has been changed to use the fullname of the type but excluding the prefixRead from namespaces prefixed with that. This will give a consistency in naming in conjunction with our feature and module system found in the metamodel. We do however have an issue registered for <a href="https://github.com/dolittle-extensions/ReadModels.MongoDB/issues/26">improving on this</a>.</p><h3>Known issues</h3><p>After release, we discovered a couple of things missing:</p><ul><li>Permission denied on some occasions on Windows for the build pipeline — <a href="https://github.com/dolittle-fundamentals/DotNET.Fundamentals/issues/220">#220</a></li><li>Boilerplates for our CLI and VScode extensions out of data — <a href="https://github.com/dolittle-boilerplates/BoundedContext.CSharp/issues/28">#28</a></li><li>Update documentation on changes in our Build pipeline — <a href="https://github.com/dolittle-runtime/DotNET.SDK/issues/208">#208</a></li></ul><p>These will be taken care of over the next couple of days.</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75ce2f03c8c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Dolittle Journey; year one]]></title>
            <link>https://medium.com/dolittle/the-dolittle-journey-year-one-e0eb63619c59?source=rss-193494567bc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0eb63619c59</guid>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[dent-in-the-universe]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[the-company]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Einar Ingebrigtsen]]></dc:creator>
            <pubDate>Tue, 01 Jan 2019 09:06:19 GMT</pubDate>
            <atom:updated>2019-01-02T18:37:55.656Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QVg5qyutdAZqckwS.jpg" /><figcaption>Photo by <a href="https://unsplash.com/photos/_g1WdcKcV3w?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mantas Hesthaven</a></figcaption></figure><p>Journey? It’s a job, you might proclaim. Well, sure; it is a job. But I would like to think that it differs from a lot of other jobs. Not just technically as in there is a difference between different professions, but even within the software industry — I like to think that working at Dolittle is different.</p><p>Let me get back to the journey part later, as I really want to make this post primarily about something else. We’re now a year into this <em>journey</em> and I want to share my perspective on that. If I were to sum up the first year in one word; it would by <strong>lucky</strong>.</p><p><em>I feel lucky to…</em></p><h3>… work with the best team</h3><p>I know everyone says this; but we genuinely have got the best team for starting our <em>journey </em>and take us to the next level. We have a team with great knowledge and expertise in all aspects of software development. A very balanced team enabling us to think holistically about the entire process of building software.</p><p>As you know; culture in any workplace is by far the most important thing you have. It is the reason people enjoy going to work. If you have a bad culture, it’s just not as motivating going to work. And the job becomes just that; a job. Being a startup, we’d have to discover our culture as we’ve moved along. It is something we’ve gradually grown into spending more and more clock cycles on. One thing we’ve had since the beginning is our own Teams Channel on culture — where we discuss the topic.</p><p>Recently we had an internal workshop with an external facilitator and at the end of the workshop, I got reminded how awesome our team is when the person said that he had been observing us throughout the day and he found one thing he had never witnessed anywhere; there were no egos in the room. To me, that’s a massive testament to how great our team is.</p><p>I’m so lucky to be part of this team.</p><h3>… truly put that dent in the universe</h3><p>The <em>journey</em> we’re on is all about creating the right toolbox to put developers in the pit of success. We use the following message to try to capture it:</p><blockquote>“Empower developers to create great, sustainable, maintainable software so that they can make their users feel like heroes.”</blockquote><p>This is all about democratization. Creating software that will live for years is hard to do, or at least if you want something that is evergreen in the sense that the software is easily maintainable over time and is considered great by the end users all the time. This is what Dolittle is all about, providing developers with a toolbox that is a combination of Dolittle technology and Dolittle providing the glue for other technology that makes it simpler to do end to end software and keep you focused on delivering business value to the end users.</p><p>Our goal is to enable every developer out there in making technology accessible to everyone.</p><p>This is what we refer to as</p><blockquote>“Equalizing the playing field”.</blockquote><h3>… be able to be part of solving real-world problems</h3><p>At the heart of everything we do is a principle of keeping ourself grounded and honest. We are not building tools for the sake of building tools; we are building the tools we build with a foundation in real-world needs. Sure, some of these needs are identified by ourselves. Both from past line-of-business application development experience we all have in the team, but also from needs we have today.</p><p>The way we keep the focus on building the right thing is to make sure what we have gets used in real-world applications as soon as possible. We thrive on feedback and work hard to keep the feedback loop as tight as possible.</p><p>We’re lucky as an organization to be doing both our own product development and be part of product development for customers, delivering real-world solutions through our <strong>Customer Success Unit</strong>. This is an excellent opportunity for us to understand the needs and challenges being faced in software development. Over the last year, we’ve gradually gotten better at understanding this opportunity and making it part of our process. Moving on, we’ve designed a daily routine that will make this even easier to capture — so that we deliver the right thing.</p><h3>… have people that believe in us</h3><p>Our <em>journey</em> started with someone believing in the message we have. This belief is what got us the funding. Dolittle is a joint venture with <a href="https://www.wilhelmsen.com/">Wilhelmsen</a> and the founders, without people believing in us we’d never get this funding. In addition to that, customers who took a chance and believed in us has kept us going. I feel very humble on behalf of Dolittle to have the trust of those believing in us.</p><p>It is crucial to have people around you that believes in what you’re doing, it is what makes you thrive and motivate you to take it to the next level. At the same time, it should never be a blind trust — we want to be constantly challenged. Keep us on our toes and honest.</p><p>We are grateful for the support and belief in us; we are not going to let you down.</p><h3>Being a startup</h3><p>The concept of a startup is not new to me; in fact I’ve mostly worked at startups since the beginning of my career in 1994. But they are all very different in all aspects except for one thing; hunger. If you want to succeed at a startup, or in fact at anything; you have to be hungry. You have to want more and not settle for the status quo! It is the belief of making a difference, making something different — something great that gets me going. And this is the thing that has been in all startups I’ve worked at.</p><p>To keep this hunger, one needs to stay curious and creative. That is where a balanced team of people comes into play; play on the difference between the team members. Embrace the strengths of one another. Be humble! Make your work environment a safe place for speaking one’s mind — everyone should park their egos. It’s the thing that will keep new ideas flowing.</p><p>Startups have a certain feel to them. Some of the aspects from the early days of a startup will go away as one mature. But the thing that should never go away is the creativity, the velocity, the sense of urgency. To keep innovation going, you have to enable your organization and create the space for everyone to thrive and have ideas that are not just ideas, but are considered and executed on when they are good ideas.</p><h3>The Journey</h3><p>What is this <em>journey</em> you speak of, you might be asking yourself. We call it a journey because it’s very much a journey of discovery. Our foundation of principles leads us away from building more of the same. The typical n-tier architecture approach and “forms over data” focused solutions that are often found in software development, especially line-of-business applications, is not something we believe is the best approach.</p><p>We find comfort in principles like <a href="https://en.wikipedia.org/wiki/Command%E2%80%93query_separation#Command_query_responsibility_segregation">CQRS</a>, <a href="https://martinfowler.com/eaaDev/EventSourcing.html">EventSourcing</a>, <a href="https://en.wikipedia.org/wiki/SOLID_(object-oriented_design)">SOLID</a>, <a href="https://en.wikipedia.org/wiki/Separation_of_concerns">Separation of Concerns</a>, <a href="https://en.wikipedia.org/wiki/Domain-driven_design">Domain Driven Design</a>,<a href="https://en.wikipedia.org/wiki/Microservices">Microservices</a>. We’ve chosen to make these our core principles.</p><p>Democratizing a new approach to software development that enables software to be built in a very different way means we have to understand the implications of making the principles mentioned approachable.</p><p>This means providing not only the programmatic APIs that makes it simple to do these things, but also discover a whole set of tools that there are no references to yet. This is where our journey begins.</p><p>On top of this, we’re doing a lot of effort in providing predictable workflows and hosting environments for this. And also discovering how it all fits together holistically with different interaction layers, such as web, mobile, desktop, APIs, bots and more.</p><p>An Important aspect for a lot of the customers we see is also to be able to create digital twins, to better monitor and operate physical equipment. Democratizing this involves understanding how to provide developers with the right toolset to be able to do this easily as well.</p><p>This is what we mean by the <em>journey</em>. Inventing the next generation toolchain that will empower developers to deliver more business value.</p><h3>In closing</h3><p>It’s now one year since our <a href="https://www.linkedin.com/in/vidar-aune-westrum/">first Dolittler</a> walked in the door. A year later the team consists of 10 awesome people.</p><p>It has truly been an awesome year. Sure, we’ve had our ups and downs. Whats more important is that we’ve taken the downs and learned from, gaining more knowledge and improving how we work — improving our culture. We don’t consider things as failures, but rather as great ways to gain insight into how we can improve.</p><p>I’m super excited about the foundation we’ve built in the first year and can’t wait to see what 2019 has in store for us.</p><p>Happy new year to all Dolittlers, partners, customers, our board — and everyone else!</p><p>Thanks to everyone that has been part of the journey and believing in what we’re doing. We’re really excited about the future and what it holds.</p><p>#MakingADent</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0eb63619c59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dolittle/the-dolittle-journey-year-one-e0eb63619c59">The Dolittle Journey; year one</a> was originally published in <a href="https://medium.com/dolittle">Dolittle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A version in the making]]></title>
            <link>https://medium.com/dolittle/a-version-in-the-making-6c2c9022f421?source=rss-193494567bc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c2c9022f421</guid>
            <category><![CDATA[cqrs]]></category>
            <category><![CDATA[event-sourcing]]></category>
            <category><![CDATA[the-platform]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[domain-driven-design]]></category>
            <dc:creator><![CDATA[Einar Ingebrigtsen]]></dc:creator>
            <pubDate>Tue, 18 Dec 2018 15:30:09 GMT</pubDate>
            <atom:updated>2018-12-19T09:49:04.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Mh1TrhC0whRsWpoXxIuEQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/bAYP_kAtNWg?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Debby Hudson</a></figcaption></figure><p>Its been almost a year since we founded Dolittle. During that period we’ve been hard at work getting the next official release of our platform out; 2.0.0. Yesterday we finally hit the release button and got it out. It’s been longer in the making though; almost 2 years with the pre-release tag of alpha.</p><h3>Where is version 1.x?</h3><p>“How did we reach version 2 level without going through a version 1?”, you might be asking. Well, Dolittle has a legacy that has been close to 10 years in the making called <a href="https://github.com/dolittle/bifrost">Bifrost</a>. 2 years ago we decided to re-position the product and evolve it towards becoming a true microservice oriented solution. We refer to Bifrost as version 1 and it felt natural to start Dolittle off with version 2.</p><p>There is also another hidden gem in why 2 makes sense; this is the second time around with Dolittle as a company. The context and approach was different, but we had Bifrost as a centerpiece in version 1 of the company. That’s a story for another time, though.</p><h3>Versioning</h3><p>Versioning software can be very hard. In our experience, doing public facing API’s is one of <em>the</em> hardest things one can deal with. The reason this is hard is due to dependencies; what will break from changes and how do we communicate that well and also make sure we are consistent.</p><p>Our philosophy is to have an always moving forward type of system. This implies not looking back and patching older versions. With API’s that are at the very core of other software products, this becomes even harder and you have to be much more careful to make it predictable.</p><p><a href="https://semver.org/">Semantic Versioning</a> is the key to everything we do moving forward. We’ve been adhering to it for the last 2 years; but it was easy to adhere to it — because we had the alpha tag :). Moving forward, we will put forward the discipline needed to have predictable versions. We’ve written it all down <a href="https://dolittle.io/general/versioning/">here</a>.</p><h3>Exploded software</h3><p>Our legacy; <a href="https://github.com/dolittle/bifrost">Bifrost</a> was for all intents and purposes a single .NET assembly. Sure, we had a couple more — but the core runtime, SDK and all was in one package. This was one of the things we wanted to address working on version 2.</p><p>With the single package, we had created a lot of friction in the codebase by having couplings that were almost impossible to break. By friction we mean we started having challenges with flexibility, changeability and maintainability.</p><p>At Dolittle we’re very focused on building high quality software that embraces change and adheres to a set of principles, such as <a href="https://en.wikipedia.org/wiki/SOLID">SOLID</a>, <a href="https://en.wikipedia.org/wiki/Separation_of_concerns">Separation of Concerns</a>.</p><p>To put ourselves in the pit of success for the next phase of the platform, we had to explode the single assembly and see where the pieces landed.</p><p>The single assembly became the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/959eb36675c2bd9d81aa0098f8018b02/href">https://medium.com/media/959eb36675c2bd9d81aa0098f8018b02/href</a></iframe><p>In addition to this, we’ve introduced the following core components:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4acb886d1ced93daf31c60b2491b9c7/href">https://medium.com/media/b4acb886d1ced93daf31c60b2491b9c7/href</a></iframe><p>One of the goals was to change our approach in the frontend. We had <a href="https://github.com/dolittle/Bifrost/tree/master/Source/Bifrost.JavaScript">our own Single Page Application framework</a> built on top of <a href="https://knockoutjs.com/">Knockout</a>.</p><p>With the fragmented world in JavaScript and Web, we decided early on to be framework agnostic and support whatever a project needs. This means we had to decide where to put what. Everything that is general across the different frameworks had to be in one place and everything specific in its own.</p><p>We knew we wouldn’t have the capacity to deal with all frameworks at the same time and with a love for <a href="https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel">MVVM</a> / <a href="http://martinfowler.com/eaaDev/PresentationModel.html">Presentation Model</a>; <a href="http://aurelia.io/">Aurelia</a> was the framework we wanted to use for our own applications, such as <a href="https://dolittle.studio/">the Studio</a> we’re in the midst of building.</p><p>Also, an important piece of the puzzle is to make everything look good — we decided early on to tackle this as well — instead of using existing frameworks for styling that was out there.</p><p>This gave us then the following packages:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/21ba11f4254b5c53432aacf7e8df2bf5/href">https://medium.com/media/21ba11f4254b5c53432aacf7e8df2bf5/href</a></iframe><p>On top of all this we also have our tooling we’re working on:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f60673ef0e73af2da09e4c3f448dfd3/href">https://medium.com/media/6f60673ef0e73af2da09e4c3f448dfd3/href</a></iframe><p>In addition to all this we’re also heads down working on solutions for Digital Twins, <a href="https://github.com/dolittle-interaction/WebAssembly">WebAssembly support</a> and more.</p><p>The purpose of the explosion is to be able to version each repository and provide a way to work in isolation for each of them. This allows for each repository to have independent release cadences and changed without worrying about the dependency load of everything consuming it. This is where SemVer and abiding strictly to it comes in for us. You can find all our NuGet packages <a href="https://www.nuget.org/packages?q=dolittle">here</a> and NPM paackages <a href="https://www.npmjs.com/search?q=dolittle">here</a>.</p><h3>How did we know it was time to release?</h3><p>Obviously, close to 2 years in alpha is a dead giveaway that we should have released a major release quite some time ago. But it really wasn’t that clear cut for us. Even though we strive towards releasing as early as we can, so that we can understand more and continuously improve from that learning — we wanted to have a certain level of maturity of our APIs before we called it 2.0.0.</p><p>From working directly with customers, such as the <a href="http://github.com/ifRCGo/cbs">Red Cross CBS project</a> and others — we’ve stabilized the platform and APIs in the alpha period. The real world feedback is vital to any product development to know if you’re getting the right thing out the door. From working with different developers we’ve taken feedback as we go along and incorporated into our platform and has now released something we’re very proud of. We’ve also paved the way for ourselves with regards to being able to do new things and also easier maintenance of what we have.</p><h3>Cascades of versions</h3><p>We discovered that applications with a top-layer dependency to Dolittle struggled to update patches and minor releases of their dependencies. When using <a href="https://nuget.org/">NuGet</a> for our packages, and even though the intermediate packages are taking wildcard dependencies on minor, the top layer won’t get changes from the bottom automatically. This comes down to how .NET Core does its bindings internally when building packages. In order for us guarantee that you get bug and security fixes from the bottom layers, we had to cascade build everything. This is now something we’re building into our own build routines to be able todo this.</p><h3>Moving forward</h3><p>Our universe is constantly expanding; more packages, more versions and more deployables in general. We will do our best to make the journey for anyone using Dolittle as predictable as possible through versioning and also release notes. Roadmaps are also something we’re trying to become better at — we need a way to express this in a way that matches how we work. We’re still trying to discover this. Look closely at this place and any of our social media streams (<a href="https://twitter.com/dolittle">Twitter</a>, <a href="https://www.facebook.com/dolittleX/">Facebook</a>, <a href="https://www.linkedin.com/company/dolittle/">LinkedIn</a>).</p><p>Happy holidays!</p><p><em>Visit our documentation page to learn more about the platform: 🔗 </em><a href="http://dolittle.io/"><em>dolittle.io</em></a></p><p><em>Clap 👏 and Follow to stay up to date with the latest articles from Dolittle</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c2c9022f421" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dolittle/a-version-in-the-making-6c2c9022f421">A version in the making</a> was originally published in <a href="https://medium.com/dolittle">Dolittle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smaller Problems]]></title>
            <link>https://medium.com/dolittle/smaller-problems-7253827e2d2b?source=rss-193494567bc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7253827e2d2b</guid>
            <category><![CDATA[domain-driven-design]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[principles]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[the-platform]]></category>
            <dc:creator><![CDATA[Einar Ingebrigtsen]]></dc:creator>
            <pubDate>Tue, 31 Jul 2018 12:46:11 GMT</pubDate>
            <atom:updated>2018-08-01T06:56:07.854Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ERo7iBDZtJeSf2JpttraQg.png" /></figure><p>Historically we have been building software products in a monolithic way, meaning that we build the software so that we could release entire products with all its functionality in one go. This meant a lot of coordination to make sure one could complete features to the specific date set for a release, even if those features were in completely different parts of the system.</p><p>Obviously when looking back when the means of distribution was physical media, you basically had no other choice but to do this. As it would be too much of an effort and too costly to produce the media continuously, not to mention package and posting it as well. Our industry stood by this approach even when entering the age of the internet. Over time we’ve grown accustomed to software getting updates on a more regular basis, be it new features, bug fixes or security updates. We would open our software and get presented a dialog box saying there is an update and when applied you’d have the following new features.</p><p>The big change is how we approach the development cycles. Since we no longer need to ship physical media, we can approach the process of delivery differently and allow for a tighter feedback loop. In many cases the approach of how we write the software has not changed. We’re dragging behind us the decades of weight of still making monolithic software. This approach often lead to <a href="https://en.wikipedia.org/wiki/Coupling_%28computer_programming%29">tight couplings</a> in software and with the principle of <a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself">DRY (Don’t Repeat Yourself)</a> in hand making software far more generic than it should be. This is where the buzz of <a href="https://en.wikipedia.org/wiki/Microservices">Microservices</a> comes in and is supposed to save the day.</p><p><em>Lets dwell a bit on the why here.</em></p><p>Why isn’t it ok to just continue developing in the way you are. Actually, you might have very good reasons to not change at all; you might already have it all under control and have a productive team, then there probably is no reason to change. However if you sense that your software quality is not as great as at it should be, or you’re not having the velocity you used to have. You might want to start considering how you’re developing your software. The primary problem one is trying to solve is to break dependencies. Both on a code level and on an organizational level.</p><p>Breaking dependencies removes friction; friction to release. You want to have as little friction as possible to be able to release. If one feature has to wait for another feature before it can be released, you might have an unhealthy friction in your system. The goal is to become obsessive on releasing, but not at any cost; quality matters. Rather drive your team(s) towards a release focus. The ideal scenario is that your software with the right boundaries can be released completely independently, without having to think about the consequences. This would be a benefit even if you have a small team that is maintaining the entire software product. It would mean that your <strong>time to learnin</strong>g (TTL) would be smaller and you’d be iterating more healthier as you would get learn from your software and feedback continuously, rather than having to wait around.</p><p>By applying things like the <a href="https://en.wikipedia.org/wiki/SOLID">SOLID principles</a> and <a href="https://en.wikipedia.org/wiki/Separation_of_concerns">Separation of Concerns</a> and sticking to fixing smaller software problems, you can start enabling this scenario and it has the side-effect of making your codebase more sustainable. Another friction point is if a part of your system becomes unavailable for some reason (e.g. a bug in the system or infrastructural problems), having parts of your system running is better than having it all be down. In fact, it can be very costly if everything goes down, breaking it up could reduce that cost.</p><h3>Software as a Service</h3><p>With the age of the internet and the advent of cloud computing, we’ve gotten to a point where we don’t even have to ship software at all, not even make it something that you download. With a username and password you can simply use your browser today and log into software and start using it without installing anything anywhere. For users, this is just great and the way it should be; it removes friction, lowers the barrier to entry and makes globalization a real opportunity for everyone making software. All of a sudden you also gain more control over which version of the software is running at any given time, as you have the potential to make your software multi-tenant and basically only have one version running. This makes it easier to focus on continuously moving forward on delivering business value.</p><p>However, new challenges needs to be tackled that previously might not have been on your radar at all. Since you’re now effectively going into the hosting business with your own software. Things like performance and scaling for instance. The easy way for traditional monolithic software is to scale on a virtual machine instance level. With rules tied to specific metrics like CPU load or disk IO and then scale out or in elastically according to usage. With a monolithic software you’re not really doing this motion the most effective as you could; you’re scaling everything. While chances are that there is only parts of your system that needs to be scaled. By breaking up into smaller problems, you gain the opportunity of scaling the pieces individually. Security ia another aspect that can be dealt with on a more fine-grained level with different security levels for the different parts of the system.</p><h3>Bounded Contexts</h3><p>So, what is a microservice? How big is it? 1000 times larger than a nanoservice? There are different definitions of this in different organizations. At Dolittle we’ve had to think hard about this, so that we can provide clear guidance on the topic. As we are a platform to enable the goal and promise that comes with the buzz of microservices. A microservice is defined as an end-to-end deployable autonomous piece of your software. This means that it represents all tiers of a vertical slice in your system all the way from its interaction layer to the actual data storage.</p><p>We’ve found that e-commerce is a good example to refer to for how this could be. Take the concept of a product. When you’re going to your favorite e-commerce online for your shopping, you’re looking at a catalog and searching for different products and looking at details of these. If you dive into the domain and look at what product is often modelled as in traditional database designs, you’ll often find it modelled as a representation of all the different aspects of the business. The product table might include things that are relevant for the warehouse, the carrier, purchasing and the user who is looking in the catalog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZHyadE_MDXwyexaM.png" /><figcaption>Bounded Contexts in e-commerce</figcaption></figure><p>While the person in the warehouse is talking about boxes, not products — and their location in the warehouse. They’re also interested in the dimensions of it and potentially the weight in order to optimize the warehouse. In the warehouse they also keep track of the stock of every item. They’re not really interested in details about the product itself. They’re also not using the same user interface as the the shopper, they’re a very different actor all together. The same applies to the carrier, who only needs to know where to ship it. In purchasing its vital to know how much the item can be acquired for and what is the retail price. These are just 4 of probably more bounded contexts, they all share the characteristics of different lingo related to the same concept, different domain experts, different user interaction and represents the source of truth for their respective aspect.</p><p>To find the divide we have come up with the following criteria to look for.</p><h3>Ubiquitous language</h3><p>At Dolittle we are focused around <a href="https://en.wikipedia.org/wiki/Domain-driven_design">Doman Driven Design</a>, expressing a domain using the correct lingo. Within systems one can find multiple lingo describing different aspects of a concept. This lingo is called the ubiquitous language; the unambiguous language that the domain experts representing the aspect talks.In a bounded context, there should only be one representation of a concept.</p><h3>Domain Experts</h3><p>A bounded context should represent a particular group of domain experts. Think of these as the actors in the domain that is being represented. It does not mean that the actor in the domain is using the software, but might have a representative that represents them in the software.</p><h3>Deployment Target</h3><p>Your software might be available on different devices, in different physical locations. Take for instance software in shipping, parts of it is in the cloud and parts onboard a ship. Playing different roles for different purposes; one being for the local edge, while the cloud part might be an aggregate of sort — maybe even just reporting of what is on the edge.</p><h3>Source of truth</h3><p>There has to be only one unambiguous source of truth and it can’t span multiple bounded contexts. In Dolittle this means that a particular state change, in the form of an event can only be applied from one bounded context. If you’re seeing ambiguity in this, you have the wrong division.</p><h3>Cohesion</h3><p>The things that belongs together should go together. We want to remove friction, and keeping the things that belongs together together then makes sense. You shouldn’t be splitting up the software on an arbitrary divide.</p><h3>Composing it back together</h3><p>The last few years we’ve seen an explosion in popularity with regards to REST APIs — a lot of people claiming its the greatest invention since sliced bread. REST APIs are nothing more than a well defined approach for connectivity, with a certain level of predictability as to what to expect when using specific routes and verbs associated with it. REST on its own is nothing more than out-of-process calls from one service to another. The challenge that comes with composition lies in versioning. Different versions of an API having to be maintained if you want to provide as little dependencies between bounded contexts as possible. If you drop the complexity of versioning, you’ve basically brought back the friction and gained nothing but a more fine grained control of scaling and security. The friction is also on a runtime level, as you have to be able to guarantee the communication. You can put ambassadors in between, both in process in the form of different retry policies and out of process solutions like <a href="https://www.istio.io/">ISTIO</a>. Sure, your code might be more sustainable within each bounded context. But you’ve brought back the friction that will make velocity drop over time. Versioning is a hard problem to solve; how many versions do you keep around and do you have all the implementations hanging around both in your codebase and at runtime.</p><p>At Dolittle we’re taking a slightly different path; there are no REST APIs between these things. In order for every bounded context to truly be autonomous, they have to be enabled for that. Since everything we do is event based and events being the source of truth, these are also the contracts between bounded contexts. They need to be versioned, or as we call it; have generations to them and mapping rules from one generation to another. This however is something you don’t need to have in your codebase, but only provide to the runtime as metadata for the runtime to deal with when going between bounded contexts. When processing the events in your bounded context you project to read models that you own in your own data source, for instance a database. Since everything is broken down into fine-grained events, you’ll find it more often than not that you’re introducing new events as domains mature in the code rather than changing old. This is a consequence of new learning in a domain. With every event being stored in an event store forever for each bounded context, any other bounded context can at their own pace gain this new learning when they’re ready by simply consuming the new events.</p><h3>Conclusion</h3><p>Users of software is increasingly becoming more advanced and as a consequence more demanding. In a fast pace world, users are also expecting progression and problems that might arise to be dealt with as fast as possible. The old approach of releasing a new version of the software once every 12 to 18 months simply won’t work in todays market. You might run the risk of losing business or even worse; go completely out of business. The way you deal with this is to have faster iterations, without sacrificing quality, so that one can learn faster and meet the market faster. To be able to do this, you need an approach that keeps your software evergreen. The approach you chose needs to be something that is right for you and your team(s) and can’t really be imposed and decided from an executive level. Dolittle has an approach that we believe in, it is an opinionated approach; well founded in industry accepted patterns, principles and practices. We also have taken the responsibility of looking at software development more holistically, rather than being a framework for solving one particular problem we see the benefit of expanding the responsibility so you can <a href="http://medium.com/dolittle/focusing-on-the-business-value-75d6d2615cf">focus on the business value</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7253827e2d2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dolittle/smaller-problems-7253827e2d2b">Smaller Problems</a> was originally published in <a href="https://medium.com/dolittle">Dolittle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Focusing on the business value]]></title>
            <link>https://medium.com/dolittle/focusing-on-the-business-value-75d6d2615cf?source=rss-193494567bc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/75d6d2615cf</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[the-platform]]></category>
            <category><![CDATA[domain-driven-design]]></category>
            <category><![CDATA[cqrs]]></category>
            <dc:creator><![CDATA[Einar Ingebrigtsen]]></dc:creator>
            <pubDate>Tue, 22 May 2018 19:47:29 GMT</pubDate>
            <atom:updated>2018-05-24T18:46:33.513Z</atom:updated>
            <content:encoded><![CDATA[<p>In software, whenever you do a “File -&gt; New Project” you start with a clean slate and for a lot of developers this is a very joyful occasion; technical decisions has to be made — should we do this or this programming language, so and so database, frontend framework of the week and fun fun fun. For others, this is just in the way of delivering the business value so desperately needed from the domain experts that commissioned or at least needed software to make their life easier. In addition to having to make all these decisions, you’re faced with having to build infrastructure — things that really are somewhat unrelated to the domain problems one is trying to solve — but they just have to be there in order for everything to make sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XopFvbtfa3QFPrr2.png" /></figure><p>These are just some of the things you typically need to think about, often at times its a lot more — especially if you’re providing the software as a “Software as a Service” offering. All of a sudden you get into a different business than you probably set out to be in; hosting, operating and maintaining another layer of infrastructure. Even though the public cloud offerings out there has helped on commoditizing and democratizing infrastructure through, it still is a layer that needs to be provisioned, maintained and looked after to be able to deliver the SLA (Service Level Agreement) that is required. That on its own is often also for software vendors a new term; SLA. A legally binding guarantee of availability, responsiveness and scalability — something that was much easier when you were just sending out your software on a CD or making it downloadable from a website, not having to worry about what infrastructure it was running on. This also again taking away precious focus on delivering the business value.</p><p>Once you get to the focus on business value, things might have changed and you might have to go back and reconsider decisions already made. At Dolittle our primary objective is to let developers focus on business value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EfKtuk8Vl6d4axtQ.png" /></figure><h3>Continuous Improvement</h3><p>The concepts of continuously doing things like integration, deploy and release are summed up in what we refer to as Continuous Improvement. It encapsulates all of the CI/CD things but helps put forward a mindset of why we’re doing what we’re doing. We’re there to improve the lives of our users — in fact, we are continuously working towards that goal. Be it implementing a new feature or bug that needs fixing, both cases will improve the user’s experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i9oOTPeJQOtaAXUT.png" /></figure><h3>Understand</h3><p>Understanding what the user’s needs are the starting point of the cycle. Since our platform is oriented around events and modeling these as state transitions, we also start any project by understanding what the state transitions in a system are and how they should be captured. This is done by using <a href="https://en.wikipedia.org/wiki/Event_storming">event storming</a></p><h3>Building</h3><p>We go straight into building the business value, without having to think about infrastructural pieces. Very little ceremony needed to get started, a few decisions and you’re off in a matter of minutes.</p><h3>Deliver</h3><p>By just checking in your code, you’ve done your part of delivering. Governance on the project decides how it gets in the hands of the users — automatically based on different strategies or through manual steps for doing quality assurance.</p><h3>Experience</h3><p>The user starts using anything new straight away and the platform collects telemetry on usage and we start experiencing what works and what doesn’t.</p><h3>Improve</h3><p>Rince repeats — based on the experience, one can now start understanding more and make life even easier for the end user.</p><h3>Being opinionated</h3><p>Part of building out Dolittle is allowing ourselves to be opinionated. Opinionated on core principles and approaches and on how things are being done allows benefits across the board and provides predictability. Developers can follow well-defined recipes for building features and focus on the user’s requirements.</p><p>The potential downside is always flexibility. There is a sacrifice to be made in order to gain the predictability. It is a balance and it is possible to provide a certain level of flexibility on certain parts, while other parts are more opinionated. This is a balance we keep a close eye on and want to be reactive towards. By being modular all the way, one can pick and chose the composition one wants. The way we write our code from the <a href="https://github.com/dolittle/dotnet.fundamentals">fundamentals</a> to <a href="https://github.com/dolittle/runtime">runtime</a> to the <a href="https://github.com/dolittle/dotnet.sdk">SDK</a>, we keep a close eye on not locking things down and throw away the key.</p><h3>Extensibility</h3><p>Key success factor of our code base is its flexibility for swapping in and out implementations. If you’re not happy with a particular implementation, roll your own, contribute back to the community or find a better one already out there. This is what is at the heart of everything we do, not just backend code but frontend — or maybe even especially frontend. There are decisions to be made on “the edge”; the surroundings of the core fabric. Typically concrete technology requirements such as a specific database to be used or for the frontend, a specific framework. We take painstaking care of making sure we do not close any doors and if we do we go back and redesign so that the architecture and abstractions are right. Sometimes we don’t want to put in an abstraction directly for a specific type of technology, but rather find a way for the developer to do the technology specifically and isolating it. This is, for instance, true to how we’ve formalized <a href="http://www.dolittle.io/Backend/Read/queries.html">Queries</a> — you have a contract in the form of the name of the query in type and any parameters it needs to be able to be dynamic, and then you provide the implementation. This implementation can then be linked directly to the underlying technology you’re targeting. We feel that this approach is much better than trying to pretend that databases are the same — they simply aren’t. The nuances are so different that you really can’t just go between them. Rather than abstracting way, you basically then have an isolation in place.</p><h3>Building blocks</h3><p>For everything that we do, we try to find the building blocks needed to build the Line of Business type of applications. These are somewhat different than you find in more generic approaches. Take for instance in the .NET space, a common building block is a <a href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.0">Controller</a>. It is pretty much the only building block and is being used for all scenarios, even though there are different requirements. It then gets bent with ActionFilters or similar to accommodate the different scenarios. This model makes everything generic — and one could argue it’s a simpler model since you’d pretty much only have to learn the mechanics of how a controller works. But it is very easy to violate good practices such as <a href="https://en.wikipedia.org/wiki/Separation_of_concerns">separation of concerns</a> and the <a href="https://en.wikipedia.org/wiki/SOLID">SOLID</a> principles. Instead, what we at Dolittle do is to formalize the building blocks into what they do and should do well — without breaking these principles that we stand for and believe in.</p><p>A good example of this is the total separation of commands and queries. In a RESTful architecture based on something like .NET, these would be actions on a controller. Often at times on the same controller — nothing in .NET saying it has to, but most samples and guidance point in this general direction. We see these as two very different problems, with quite different requirements for performance, scale, security, validation and business rules. Who all are again different building blocks on their own. Breaking it into smaller problems makes it a lot easier to maintain each problem in isolation.</p><h3>What sparked Dolittle?</h3><p>Dolittle did not happen over night. Its running close its 10 year anniversary of its inception. Certainly, a lot has changed over the years and there is hardly any resemblance to what we started off with. The thing that sparked it was experienced with building software throughout the years with approaches that felt old and not current with how the world looks today. The n-tier architecture approach is something that has been going on for decades and we felt pain with it and wanted to try out new things. We went down the path of <a href="https://en.wikipedia.org/wiki/Command%E2%80%93query_separation#Command_query_responsibility_segregation">CQRS</a> and started diving into events all founded in <a href="https://en.wikipedia.org/wiki/Domain-driven_design">Domain Driven Design</a> with the desire to find how we could translate the building blocks mentioned in the book into something more tangible. We also saw that we spent too much time agonizing over technical decisions and things that didn’t add business value. Based on the experience with a few of these projects we started seeing a set of repetitive patterns that we wanted to formalize and not have to repeat. A lot of iterations went into getting some of these abstractions right and we got it wrong quite a few times and are still seeing some of that legacy and still learning more about how to improve this.</p><h3>Learn more?</h3><p>Even though we’ve been at this game for a while, we’ve as many other software projects out there not put too much effort into documentation. Something we are working on improving these days. Our official <a href="http://www.dolittle.io/">site</a> has some documentation and will gain more over the next coming months. We’re also going to be posting content here on this blog and do videos over at our <a href="https://www.youtube.com/channel/UCO54aeNeVzKFYVo7sVsXlAA">YouTube Channel</a>. Everything that we do is done in the open, you can find all our projects and a list of our organizations <a href="https://github.com/dolittle/home">here</a>.</p><p>For the core principles at play in the Dolittle platform, you can find an article <a href="http://www.dolittle.io/Articles/overview.html">here</a>.</p><h3>Empowering businesses</h3><p>We’re very excited about the future and what it holds. We are very committed to our primary objectives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z1TRBE7pD5gNW2al.png" /></figure><p>Follow this blog if you want to learn more about what we’re all about and how we are thinking about software development and artifacts surrounding software development — such as agreements, sales and more. We have a few ideas on these things as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75d6d2615cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dolittle/focusing-on-the-business-value-75d6d2615cf">Focusing on the business value</a> was originally published in <a href="https://medium.com/dolittle">Dolittle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>