<?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 Kolawole Gabriel on Medium]]></title>
        <description><![CDATA[Stories by Kolawole Gabriel on Medium]]></description>
        <link>https://medium.com/@gabkolawole?source=rss-4fbacd70e03d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fHVpK6JdZSnYwtftlaWa7A.jpeg</url>
            <title>Stories by Kolawole Gabriel on Medium</title>
            <link>https://medium.com/@gabkolawole?source=rss-4fbacd70e03d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 07:17:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gabkolawole/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[Reductions and CPU usage with Elixir (Erlang VM)]]></title>
            <link>https://medium.com/@gabkolawole/reductions-and-cpu-usage-with-elixir-erlang-vm-5e47eaae6448?source=rss-4fbacd70e03d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e47eaae6448</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[erlang]]></category>
            <dc:creator><![CDATA[Kolawole Gabriel]]></dc:creator>
            <pubDate>Thu, 08 Aug 2019 20:58:16 GMT</pubDate>
            <atom:updated>2019-08-08T20:58:16.863Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_XAp9-UMNX-T7z3e" /><figcaption>Photo by <a href="https://unsplash.com/@christianw?utm_source=medium&amp;utm_medium=referral">Christian Wiediger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Right in the middle of the week, the Ops sniper of my team called devs attention to the uprise in CPU usage on the production instance. Startled by the news, started guessing what could be the reason. You can imagine those guesses like <em>what was deployed in the last release</em> and so on, the team swung into action to isolate what could be the possible reason for this uprise from the dark side.</p><p>An erlang veteran in the team swung into action running something like the following via the production application remote_console:</p><pre>iex(app@127.0.0.1)61&gt; :erlang.processes() |&gt;<br>...(app@127.0.0.1)61&gt; Enum.map(fn process -&gt;<br>...(app@127.0.0.1)61&gt;    info = :erlang.process_info(process)<br>...(app@127.0.0.1)61&gt;    %{reductions: info[:reductions], name: info[:registered_name], current_function: info[:current_function]}<br>...(app@127.0.0.1)61&gt; end) |&gt;<br>...(app@127.0.0.1)61&gt; Enum.sort(&amp;(&amp;1[:reductions] &gt;= &amp;2[:reductions])) |&gt;<br>...(app@127.0.0.1)61&gt; Enum.take(5)</pre><pre>[<br>  %{<br>    current_function: {:gen_server, :loop, 7},<br>    name: App.Cache.Workers.ModelById,<br>    reductions: 20099914956<br>  },<br>  %{<br>    current_function: {:gen_event, :fetch_msg, 6},<br>    name: Logger,<br>    reductions: 2956888931<br>  },<br>  %{<br>    current_function: {:gen_server, :loop, 7},<br>    name: App.Cache.Workers.Contracts,<br>    reductions: 1048122693<br>  },<br>  %{current_function: {:gen_server, :loop, 7}, name: nil, reductions: 923807411},<br>  %{current_function: {:gen_server, :loop, 7}, name: nil, reductions: 656306044}<br>]</pre><p>With the above, we will be able to retrieve the top five (5) processes with high reductions count.</p><p><em>But why reductions ?</em></p><p>One reduction can be perceived as a single function call within a process scheduled by the erlang scheduler. Hence, <strong>the higher the number of function calls (reductions) within a process the higher the CPU usage. </strong>For more information about scheduling in erlang, this <a href="https://hamidreza-s.github.io/erlang/scheduling/real-time/preemptive/migration/2016/02/09/erlang-scheduler-details.html">post</a> does justice to that.</p><p>Using the snippet above, the team was able to figure out the process with billions of reductions which translated to the high CPU usage, good catch! Expanding the process with :erlang.process_info/1 the current function being called can be seen and fixed.</p><p>While looking into this issue, I came across <a href="https://github.com/zhongwencool/observer_cli">observer_cli</a> an interesting tool, with an appealing user interface, with which the same result can be achieved along with other interesting information about running processes on a node. It provides information relating to memory usage, message queue, heap_size per process on the running node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_VKDNfzeFW4OriAH.jpg" /><figcaption>observer_cli interface</figcaption></figure><p>Hopefully this helps when you hit a situation such as this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e47eaae6448" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing the Sportsbet.io Telegram Betting Bot]]></title>
            <link>https://medium.com/@gabkolawole/the-bettingbot-sports-telegram-betting-bot-c48955bddb06?source=rss-4fbacd70e03d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c48955bddb06</guid>
            <category><![CDATA[sports-betting]]></category>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[betting]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Kolawole Gabriel]]></dc:creator>
            <pubDate>Tue, 03 Jul 2018 07:47:57 GMT</pubDate>
            <atom:updated>2018-07-04T19:28:21.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AFK5NX9E8DWDYUbYx7_DXw.jpeg" /></figure><p><em>Conceptualised by the CEO of Coingaming as an internal hackathon topic, targeted to deliver the next level of super experience via another channel to our existing users and new signups on sportsbet.io.</em></p><blockquote>Check it out here: <a href="https://telegram.me/betting_bot">Sportsbet.io betting bot</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*pTdWLJ0oNixdN_ERH65_pg.png" /></figure><p>The bot is a mixing of availability and technology, delivering the same amazing user experience available already on desktop and mobile platforms, to users in text-only mode via the rich Telegram core API.</p><p><a href="https://sportsbet.io/">Sportsbet.io</a> betting bot features the same sport categories, events and markets (branch, stem and leaves) as on the standard website.</p><p><strong>What is the value proposition?</strong></p><p>The value proposition of the betting bot is nothing short of engagement. Users can place bets in a smart manner, be notified of bet ticket settlements and transaction resolutions, all rolling in as notifications on their devices in a timely manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*icfYrEh78UCQ1ERyURX_cQ.png" /></figure><p>Deposits, withdraws and all transaction history can be accessed right from within the bot with the bot’s slash commands.</p><p>It is multi-lingual. Users can actively change the language in which the bot communicates with them.</p><p>The bet process is seamless. The user can easily navigate through the various sports categories available on the main site, through the bot interface buttons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*nPthyGIEHLfA-WVNyCdagA.png" /></figure><p>This guides the user through the creation of a bet ticket, the confirmation of it and finally the placing of the bet.</p><p>Built with elixir, the bot server takes advantage of all the features the open telecom platform (OTP) has to offer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c48955bddb06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elixir EU Conference 2018 Experience]]></title>
            <link>https://medium.com/@gabkolawole/elixir-eu-conference-2018-experience-2ab4ad778c7?source=rss-4fbacd70e03d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ab4ad778c7</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[elixir]]></category>
            <dc:creator><![CDATA[Kolawole Gabriel]]></dc:creator>
            <pubDate>Fri, 20 Apr 2018 14:40:04 GMT</pubDate>
            <atom:updated>2018-04-21T13:09:36.864Z</atom:updated>
            <content:encoded><![CDATA[<p>It was an amazing experience at the just concluded 2018 Elixir EU conference in Poland.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XDL8-854d7XBrfnF1EyLEQ.jpeg" /></figure><p>The conference was filled with amazing talks from different speakers. My personal take homes are the following:</p><h4><strong>GenStage/Flow use cases and implementation</strong></h4><p>This was a popular topic at the conference, there were multiple track speakers elaborating the power of flow and GenStage in elixir.</p><h4><strong>SOLID Principles with elixir</strong></h4><p>A very interesting session highlighting the very famous OO principle, and how it can be applied in functional programming such as Elixir.</p><h4><strong>Structs for order</strong></h4><p>A talk centered on having a contractual design pattern in developing services, where every data exchange has a shape. The talk highlighted how embedded schemas/struts and ecto changeset functions can be used to achieve a lot with less.</p><h4><strong>Mobile app development with expo</strong></h4><p>During one of the lightning talk sessions, a speaker displayed how fast native iOS and Android mobile applications can be developed using <a href="http://expo.io/">expo.io</a> — a react native based tool chain.</p><h4><a href="https://janus.conf.meetecho.com/"><strong>Janus</strong></a><strong> WebRTC for video calls</strong></h4><p>The speaker exhibited a video chat application development with phoenix using the <a href="https://github.com/ndarilek/elixir-janus/">janus-elixir client</a>. The application heavily relied on GenServer for handling different call activity, while phoenix channels are used for the frontend handshakes.</p><h4><strong>Event driven service design</strong></h4><p>This was an interesting talk, addressing micro services development based on data context, while taking advantage of published data in the form of subscriptions for handshakes between different services.</p><p>At the end of the two-day session there was a lot to take in, and yes it was an amazing experience in Poland. Thanks to the organisers! I am now looking forward to the Elixir EU conference 2019.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ab4ad778c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DROP-IT]]></title>
            <link>https://medium.com/@gabkolawole/drop-it-51d33d9ee212?source=rss-4fbacd70e03d------2</link>
            <guid isPermaLink="false">https://medium.com/p/51d33d9ee212</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Kolawole Gabriel]]></dc:creator>
            <pubDate>Mon, 14 Mar 2016 23:21:24 GMT</pubDate>
            <atom:updated>2016-03-14T23:40:46.177Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*um6womJJ7MiYPcKNOWI4Yg.jpeg" /></figure><p>Many times we tend to find it difficult to let go! Letting go is difficult and easy at the same time, and this is a very important attribute I think every individual should possess.</p><p>The popular saying <em>“If it is not working drop it”</em>. This is the attitude which should have about everything that affects our day to day life in one way or the other be it relationship, career, or even the basic human habits.</p><p>As individuals we often find it difficult to accept the fact, that it is yet another time to move on, rather the urge to indulge, shadows our judgement with the thought of things being under control or turning around in some future time. Though this is possible in some rare cases.</p><p>People often find themselves in situations beyond personal comprehension and yet the strength to continue pushing towards this deficiency is mistaken to be endurance or believing.</p><p>There are so many unfulfilled careers and sour relationships out there all these due to the fact that the victims in question are not paying attention at all, to that counsellor within them. <em>The counsellor within you is that part of your sub concious always listening, alert and not bias in anyway to your thoughts.</em></p><p>There should always be check and balances in our day to day life, we should be accountable for our life events and the choices we make as individuals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51d33d9ee212" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SWORD]]></title>
            <link>https://medium.com/@gabkolawole/sword-5eae0adc23ce?source=rss-4fbacd70e03d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5eae0adc23ce</guid>
            <category><![CDATA[inspirational]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[university-of-tartu]]></category>
            <dc:creator><![CDATA[Kolawole Gabriel]]></dc:creator>
            <pubDate>Fri, 04 Sep 2015 08:00:37 GMT</pubDate>
            <atom:updated>2015-09-04T08:00:37.477Z</atom:updated>
            <content:encoded><![CDATA[<h4>Seeking Wonders Only Requires Dreaming.</h4><p>Are you a <strong>DREAMER</strong>?</p><p>Dreams are very important to any man’s life, what are our dreams?</p><p>A man’s dreams ranges from better life expectancy, wonderful career, fulfilled marriages/Relationships e.t.c All these which is the bedrock of living the life we actually desire.</p><p>Being a dreamer only doesn’t make all this work or necessary put things in place in the line of our thoughts but it sets us up by giving us a path to work on, the following must be taking care of if any dream will be fulfilled.</p><blockquote>a. Persist ency</blockquote><blockquote>b. Watering/Growth</blockquote><blockquote>c. Action/Activity</blockquote><blockquote>d. Monitoring</blockquote><p><strong><em>Persistence </em></strong><em>is the process of painting the big picture repeatedly in several instances. This is done in the super body of you, your subconscious such that when you are not actively discussing or working the subject of the said dream, it is comes into play in a coordinated manner such that your involvement and engagement with other subjects or cases of life is always around this dream of yours. This process of creating this instance of the big picture in order to make it persistent can involve highlighting it out distinctively on your desk at work, your wall home or in your room.</em></p><p><strong><em>Watering/Growth </em></strong><em>is the next phase the dream needs to pass through after the dream must have been registered to the sub conscious. This is the phase of continuous practice and engagement with the dream. This is achieved by identifying the key resource or achievements to that dream of yours. Identifying the resource of the dream is like selecting the right fertilizer to use when crops are planted. For instance in order to become a chartered accountant you need to undergo training from a formal university or college and be trained as an accountant before proceeding to write the corporate certifications which certifies you as a chartered accountant. In essence the growth of your dreams are layered and every step is crucial to the other.</em></p><p><strong><em>Action </em></strong><em>intercepts with watering and growth stage. The results of your ideas and dreams are true reflection of your action during the watering and growth phase, if you water your dreams and ideas with negligence or doubt you will get a result as such. Imagine two dogs, one being fed with three times (3) daily and the other may be just once (1) in a day. It is evident that the dog being fed thrice daily will be stronger, filled with life and energy than the other which only takes a single meal daily, so also is the nature of our dreams when good or bad actions are taken in watering and growing them.</em></p><p><strong><em>Monitoring</em></strong><em> there is a need to watch the progress or state of our dreams at every now and then by creating monitors in the form of milestones in the path of the dreams. I believe part of the checkpoints Facebook had in the early stage of conception was to hit a significant number of active users say 1 million active users in the space of 2 months. It is essential to quantify progress and to track the the speed of execution from time to time.</em></p><p>Dream and don’t stop dreaming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5eae0adc23ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>