<?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 Igor T. on Medium]]></title>
        <description><![CDATA[Stories by Igor T. on Medium]]></description>
        <link>https://medium.com/@legigor?source=rss-ce3defe40781------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RKvKlAzCuWWv4PKK.jpg</url>
            <title>Stories by Igor T. on Medium</title>
            <link>https://medium.com/@legigor?source=rss-ce3defe40781------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 05:50:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@legigor/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[ES/DDD, Probabilistic Models and Streams of Events]]></title>
            <link>https://medium.com/@legigor/es-ddd-probabilistic-models-and-streams-of-events-f75f70453599?source=rss-ce3defe40781------2</link>
            <guid isPermaLink="false">https://medium.com/p/f75f70453599</guid>
            <category><![CDATA[domain-driven-design]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Igor T.]]></dc:creator>
            <pubDate>Sat, 12 Dec 2015 15:07:44 GMT</pubDate>
            <atom:updated>2015-12-12T15:07:44.113Z</atom:updated>
            <content:encoded><![CDATA[<p>In classic ES approach, we are assuming the final state of the domain object called the Root Aggregate or some state in the bounded context is just a projection of the sequential events fired from within the domain object. The value of this approach is that events stream is the value when the final state is not.</p><p>So, we can rebuild the final state from the even stream. What if we will change the stream interpretation logic? May the state be different from how it was a day before but still being based on the same stream? Of course, it can!</p><p>Let’s take a look at Spotify as one of the recommendation services. When the user listens to the music this activity populates the stream of events for the songs he has just listened.</p><p>So, the recommended list is just a projection from this events stream. Right? Seems so. If we will google about different recommendations algorithms, we will find them all are reactive: the filters, the neutral networks.</p><p>I.e. let’s model the player as a root aggregate with methods Play() that returns a song to user to play, and methods Like/Dislike(Song s) to ban or to promote the song for future calls of the method Play().</p><p>All these actions producing the intensive stream of Play/Like/Dislike events. How important is to keep this stream strictly sequential? Because the neural network or a filter approach is kind of statistical magic and strictness of the events sequence is just a threshold, only some clusters of events should be sequential.</p><p>So, instead of using strict version property we may use the timestamp now.</p><p>And the final state of the filter/neural network is only matters as a projection from the last 2 weeks interval.</p><p>Is it still DDD and ES? Of course yes. Just wider view :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f75f70453599" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>