<?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 Yury Bushev on Medium]]></title>
        <description><![CDATA[Stories by Yury Bushev on Medium]]></description>
        <link>https://medium.com/@bushevuv?source=rss-d9cda64bd45f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uUFWJjojLZUd_meKd9hHrA.jpeg</url>
            <title>Stories by Yury Bushev on Medium</title>
            <link>https://medium.com/@bushevuv?source=rss-d9cda64bd45f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:51:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bushevuv/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[Introducing GPT-4 Support in CodeSnack IDE: Unleashing a New Revolution in Coding ]]></title>
            <link>https://medium.com/@bushevuv/introducing-gpt-4-support-in-codesnack-ide-unleashing-a-new-revolution-in-coding-18dad91b38e8?source=rss-d9cda64bd45f------2</link>
            <guid isPermaLink="false">https://medium.com/p/18dad91b38e8</guid>
            <category><![CDATA[codesnack-ide]]></category>
            <category><![CDATA[coding-revolution]]></category>
            <category><![CDATA[ai-powered-features]]></category>
            <category><![CDATA[gpt-4-integration]]></category>
            <category><![CDATA[ai-in-development]]></category>
            <dc:creator><![CDATA[Yury Bushev]]></dc:creator>
            <pubDate>Sat, 01 Apr 2023 19:39:21 GMT</pubDate>
            <atom:updated>2023-04-01T19:39:21.990Z</atom:updated>
            <content:encoded><![CDATA[<p>At CodeSnack, we’ve always been committed to pushing the boundaries of what’s possible, enabling developers to reach new heights, and revolutionizing the way we code. Today, we’re thrilled to announce the <strong>integration of GPT-4</strong> into <strong>CodeSnack IDE</strong> — creating a next-generation coding experience that’s more powerful, efficient, and intelligent than ever before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJA_IVua6cGS-N8MJLl_pA.png" /><figcaption>🚀 CodeSnack IDE now powered by GPT-4! 🎉</figcaption></figure><p>With <strong>over 250,000 users</strong> and counting, CodeSnack IDE is available on <a href="https://apps.apple.com/us/app/code-compiler-programming/id1397424959"><strong>App Store</strong></a> and<strong> </strong><a href="https://play.google.com/store/apps/details?id=com.cloudcompilerapp"><strong>Google Play</strong></a>. We want to extend our heartfelt gratitude to our users for their continuous support and enthusiasm, and we can’t wait for you to experience this latest revolution.</p><h3>🌟 Exciting New AI-Powered Features 🌟</h3><p>With GPT-4 support in CodeSnack IDE, you’ll have access to a range of mind-blowing features, including:</p><ul><li><strong>Instant Project Kickstart</strong>: Just provide a text prompt, and our AI will generate entire project structures tailored to your needs.</li><li><strong>Bug Detection &amp; Fix Proposals</strong>: Say goodbye to pesky bugs — our AI will not only locate them but also offer intelligent solutions.</li><li><strong>Code Whisperer</strong>: Let the AI explain complex code blocks, making it easier to understand and maintain your codebase.</li><li><strong>Knowledgeable Code Companion</strong>: Have code-specific questions? Get quick, accurate answers from our AI assistant.</li><li><strong>Intelligent Refactoring</strong>: Improve your code quality with AI-powered refactoring suggestions that boost readability and maintainability.</li><li><strong>Optimized Performance</strong>: Let the AI analyze and optimize your code for maximum efficiency and performance.</li></ul><h3>🎁 More Surprises Await 🎁</h3><p>As if these incredible features weren’t enough, we’re also working on <strong>even more AI enhancements</strong> for CodeSnack IDE. But we won’t spoil the surprise — stay tuned to find out what revolutionary capabilities are just around the corner!</p><p>Once again, we want to thank our amazing users for their unwavering support. With GPT-4 now powering CodeSnack IDE, we can’t wait to see the incredible projects you’ll create, and the boundaries you’ll continue to push.</p><p><strong>Ready to experience the future of coding?</strong> Join us on this journey and download CodeSnack IDE from the <a href="https://apps.apple.com/us/app/code-compiler-programming/id1397424959">App Store</a> or <a href="https://play.google.com/store/apps/details?id=com.cloudcompilerapp">Google Play</a> today!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18dad91b38e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling Electron.js application with Microservices]]></title>
            <link>https://medium.com/@bushevuv/scaling-electron-js-application-with-microservices-c9d73718a882?source=rss-d9cda64bd45f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9d73718a882</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[electronjs]]></category>
            <category><![CDATA[desktop-app]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <dc:creator><![CDATA[Yury Bushev]]></dc:creator>
            <pubDate>Tue, 05 Mar 2019 16:50:03 GMT</pubDate>
            <atom:updated>2019-03-05T16:50:03.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkAkRQXwCXiiKp5uAs3U-g.png" /></figure><p>Recently, I managed to work on a large desktop application. It had a variety of CPU-consuming features inside, from an HTTP server to a version control system with gigabytes of daily backups. In other words, it was a high niche application. It acted like a server, but it was portable, with a convenient GUI.</p><p>This article is about developing large <a href="https://electronjs.org/">Electron.js</a> applications using Microservice Architecture.</p><p><strong>Different ways to execute a background job</strong></p><ul><li><strong>Web Workers</strong> — the method is based on the creation of a new process in Chromium. It is well suited for tasks not requiring the use of <a href="https://electronjs.org/docs/tutorial/multithreading#native-nodejs-modules">Native Modules</a>.</li><li><strong>Child OS process </strong>— allows us to get a full-fledged child process. But communication requires a data channel and logic.</li></ul><p><strong>What is Moleculer?</strong></p><p><a href="https://moleculer.services/">Moleculer</a> is a framework for creating Node.js applications with Microservice Architectures. Due to its <a href="https://moleculer.services/docs/0.13/#Features">rich functionality</a>, it has been widely used on the server side. However, nothing prevents us from using it as a desktop application on Electron.js.</p><p><strong>Creating an application</strong></p><p>For example, we can create an application for optimizing images. We will use Moleculer for interconnection between separate OS processes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Ffamiliarquaintjabiru&amp;url=https%3A%2F%2Fgfycat.com%2Ffamiliarquaintjabiru&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FFamiliarQuaintJabiru-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="2036" height="1668" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb46907807ee937d4a3c452556069407/href">https://medium.com/media/bb46907807ee937d4a3c452556069407/href</a></iframe><p>The source code of the application is available on a GitHub:</p><p><a href="https://github.com/bushev/electron-microservices-example?v=1">bushev/electron-microservices-example</a></p><p>The Architecture of the application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eklK5hD3whp3zBduZl1Oaw.png" /><figcaption>The Architecture of the application</figcaption></figure><p>In Moleculer terms, we have three microservices. Two of them work in their own separate OS processes, and another one is integrated into the <a href="https://electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes">Main Process</a>.</p><p><strong>Microservice</strong>: Compressor</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/91246f8be2fb1e050359860c3de951c6/href">https://medium.com/media/91246f8be2fb1e050359860c3de951c6/href</a></iframe><p>Create an action with the name “compress” and with the parameter “filePath”. This action will perform compression and return a statistic, in particular:</p><ul><li>Optimized file path</li><li>Input file size</li><li>Optimized file size</li><li>Optimization rate in percent</li></ul><p><strong>Microservice</strong>: Thumbnail</p><p>Looks almost the same as the previous one. Allows us to get an image thumbnail in base64 format.</p><p><strong>Microservice</strong>: Electron</p><p>A kind of bridge between <a href="https://electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes">Renderer Process</a> and microservices network.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f40acef3ae0f9da6372fedd9653975d/href">https://medium.com/media/9f40acef3ae0f9da6372fedd9653975d/href</a></iframe><p>As soon as Main Process receives an event by “call” channel, it forwards it to the appropriate service. Once the service finishes the request handling, Renderer Process will be notified by the “call-result” channel.</p><p><strong>IPC between microservices</strong></p><p><a href="https://moleculer.services/docs/0.13/networking.html#Transporters">Transporter</a> is required to connect microservices between each other. In the case of server-side development, such solutions like NATS, Redis, MQTT or Kafka are usually used. In our case, a portable solution is needed. The options are:</p><ul><li>TCP Transporter</li><li>MQTT Transporter (<a href="https://github.com/mcollina/mosca">Mosca</a>)</li></ul><p>TCP is the easiest one to use for this example. But please note, it is an experimental transporter. <strong>Do not use it in production yet!</strong></p><p><strong>Bootstrap child process</strong></p><p>There are <a href="https://medium.freecodecamp.org/node-js-child-processes-everything-you-need-to-know-e69498fe970a">many ways</a> how to spawn child processes in Node.js. Start by using <a href="https://threadsjs.readthedocs.io/en/latest/">Threads.js</a> because it makes separate processes with a few lines of code.</p><p>A microservices Loader code is right here:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e3fa4f39c1c2cf643c998ed21421c1c/href">https://medium.com/media/7e3fa4f39c1c2cf643c998ed21421c1c/href</a></iframe><p>Now that microservices are loaded and waiting for calls from outside, it’s a good time to move to the Renderer Process.</p><p><strong>How to call microservices from Renderer Process?</strong></p><p>Because there are many Frontend libraries and framework, we should focus on how to interact with the Main Process.</p><p>In the example application, the Angular framework is used. And everything related to communication with the Main Process concentrates is in this provider:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a6a351355c6675df05584059bc0a453/href">https://medium.com/media/2a6a351355c6675df05584059bc0a453/href</a></iframe><p>As we use async IPC between Renderer and Main processes, we are saving the ID for every call. It makes it possible to find the correct call-back for each request when the response comes, even if we receive multiple calls simultaneously.</p><p>In this way when the application user drops an image to compress, the following occurs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maw89BIDPg_pYzyHYmS3pA.png" /></figure><p>How to handle these scenarios:</p><ul><li>Receive multiple responses for a single call (for showing the progress of some long-running operation)</li><li>Be notified from microservices when they have new data for the application</li></ul><p><strong>Events!</strong></p><p>Of course, we cannot pass by and not show an example of an event-based IPC. So, with events, the processing of one image looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLrVsSa25RPESZkl6SBdGA.png" /></figure><p>Add events support for the microservices:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ffc85179977d4a2a61d6269fe60d6d4/href">https://medium.com/media/9ffc85179977d4a2a61d6269fe60d6d4/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e25c075755ee786eeecc7b56917aeabf/href">https://medium.com/media/e25c075755ee786eeecc7b56917aeabf/href</a></iframe><p>In the Renderer Process we can send events:</p><pre>ipcRenderer.send(‘emit’, {event, payload});</pre><p>And subscribe to events:</p><pre>ipcRenderer.on(event, listener);</pre><p>More about events handling and broadcasting <a href="https://moleculer.services/docs/0.13/events.html">here</a>.</p><p><strong>Pros</strong></p><ul><li>Microservices with all its advantages.</li><li>Easier scaling.</li><li>Ability to convert the desktop application to a backend service in the future.</li></ul><p><strong>Cons</strong></p><ul><li>Too much overhead for small apps</li></ul><p><strong>Recap</strong></p><p>The described way for developing desktop applications with Electron.js is perfect for large desktop applications, mostly for specific kinds of software which act as a server but should have portable installer and GUI.</p><p><strong>References and Links</strong></p><ul><li><a href="https://moleculer.services/">Moleculer - Progressive microservices framework for Node.js</a></li><li><a href="https://moleculer.services/docs/0.13/moleculer-db.html">Database Adapters</a></li><li><a href="https://github.com/moleculerjs/awesome-moleculer">moleculerjs/awesome-moleculer</a></li><li><a href="https://github.com/bushev/electron-microservices-example">bushev/electron-microservices-example</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9d73718a882" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>