<?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 morteza hosseini on Medium]]></title>
        <description><![CDATA[Stories by morteza hosseini on Medium]]></description>
        <link>https://medium.com/@mortezahosseinee?source=rss-36b6bc3c58e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0asKdsgYbSg6j57dmuyUNA.jpeg</url>
            <title>Stories by morteza hosseini on Medium</title>
            <link>https://medium.com/@mortezahosseinee?source=rss-36b6bc3c58e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 21:24:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mortezahosseinee/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[Siddhi -   part1 : Start]]></title>
            <link>https://medium.com/@mortezahosseinee/siddhi-part1-start-33e7b0d62b9e?source=rss-36b6bc3c58e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e7b0d62b9e</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[siddhi]]></category>
            <dc:creator><![CDATA[morteza hosseini]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 09:31:32 GMT</pubDate>
            <atom:updated>2022-01-26T10:03:35.997Z</atom:updated>
            <content:encoded><![CDATA[<h3>Siddhi - part1 : Start</h3><p>Fully open source, cloud native, scalable, <strong>micro streaming</strong>, and complex event processing system capable of building event-driven applications for use cases such as real-time analytics, data integration, notification management, and adaptive decision-making.</p><p>Event processing logic can be written using Streaming SQL queries via graphical and source editor, to capture events from diverse data sources, process and analyze them, integrate with multiple services and data stores, and publish output to various endpoints in real-time.</p><h3><strong>How to launch siddhi container?</strong></h3><p>I want to setup siddhi with docker, so you need to know <a href="https://medium.com/swlh/what-exactly-is-docker-1dd62e1fde38">somethings about docker and how to use it</a>?</p><p>Siddhi has a core container and 2 wrapper on it:</p><ol><li>siddhi-runner: this is just for running siddhi apps.</li><li>siddhi-tooling: this is for running siddhi apps and debug them in siddhi editor.</li></ol><ul><li>Fist we will learn how to launch siddhi-tooling</li><li>Second we will learn how to launch siddhi-runner-ubuntu</li><li>OS: Linux Ubuntu 18.04.5 LTS: you can use any other OS type(Windows, Mac) or version</li><li>We assume docker was installed on the system, <a href="https://docs.docker.com/engine/install/ubuntu/">this is helpful</a></li><li>We assume docker-compose was installed on the system, <a href="https://docs.docker.com/compose/install/">this is helpful</a></li><li>Open terminal</li><li>Check docker installation</li></ul><blockquote><strong>docker - -version</strong></blockquote><blockquote>Docker version 20.10.7, build 20.10.7–0ubuntu5~18.04.3</blockquote><ul><li>Check docker-compose installation</li></ul><blockquote><strong>docker-compose - -version</strong></blockquote><blockquote>docker-compose version 1.29.0, build 07737305</blockquote><ul><li>You are ready to install siddhi-tooling</li></ul><p>These are siddhi helpful links:</p><ul><li><a href="https://siddhi.io/en/v5.1/docs/">Siddhi documentation V 5.1.+</a></li><li><a href="https://siddhi.io/en/v5.1/download/">Siddhi Downloads V 5.1.+</a></li></ul><h4>* Siddhi-tooling</h4><p><strong>Install siddhi-tooling with pulling image</strong></p><blockquote>docker pull siddhiio/siddhi-tooling:5.1.2</blockquote><p><strong>Install siddhi-tooling with docker-compose</strong></p><ul><li>Create a file: name it <strong>siddhi-tooling.yml</strong></li><li>Put this config in yml file and save it: Indentation in docker-compose file is important, i put all necessary config here but you must correct indentation because medium editor does not allow extra indentation.</li></ul><h4>docker-compose file for siddhi-tooling</h4><blockquote>version: ‘3.8’<br>services:<br> siddhi_tooling:<br> image: siddhiio/siddhi-tooling:5.1.2<br> networks:<br> — default<br> ports:<br> — “9390:9390”<br> user: root<br> volumes:<br> — ./siddhi-files-tooling:/home/siddhi_user/siddhi-tooling/wso2/tooling/deployment/workspace<br> — /etc/timezone:/etc/timezone:ro<br> — /etc/localtime:/etc/localtime:ro</blockquote><ul><li><a href="https://up.maralhost.com/download1341.html">siddhi-tooling.yml download</a></li><li>If this file link was broken, email me to update it. <a href="http://mortezahosseinee@gmail.com/">mortezahosseinee@gmail.com</a></li><li>In terminal:</li></ul><blockquote>docker-compose -f siddhi-tooling.yml up -d</blockquote><blockquote>Pulling siddhi_tooling (siddhiio/siddhi-tooling:5.1.2)…<br>5.1.2: Pulling from siddhiio/siddhi-tooling<br>32802c0cfa4d: Pull complete<br>…<br>507cdfbd27d8: Pull complete<br>Digest: sha256:8c6c51c2b16362ed78ef199df240e42359f46a7538af6709c82dffa12f26826e<br>Status: Downloaded newer image for siddhiio/siddhi-tooling:5.1.2<br>Creating directory_name_siddhi_tooling_1 … done</blockquote><ul><li>-d is optional: Running docker-compose up -d starts the containers in the background and leaves them running.</li><li>Now siddhi-tooling is up and you can access it by route to <a href="http://localhost:9390/editor">http://localhost:9390/editor</a> in browser.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5a2bHYhdNG5HONovI5SacQ.png" /></figure><h4>* siddhi-runner-ubuntu</h4><p><strong>Install siddhi-runner with pulling image</strong></p><blockquote>docker pull siddhiio/siddhi-runner-ubuntu:5.1.2</blockquote><p><strong>Install siddhi-runner with docker-compose</strong></p><ul><li>Create a file: name it <strong>siddhi-runner-ubuntu.yml</strong></li><li>Put this config in yml file and save it: Indentation in docker-compose file is important, i put all necessary config here but you must correct indentation because medium editor does not allow extra indentation.</li></ul><h4>docker-compose file for siddhi-runner-ubuntu</h4><blockquote>version: ‘3.8’<br>services:<br> siddhi-runner:<br> image: siddhiio/siddhi-runner-ubuntu:5.1.2<br> networks:<br> — default<br> ports:<br> — “9090:9090”<br> user: root<br> volumes:<br> — ./siddhi-files:/home/siddhi_user/siddhi-runner/wso2/runner/deployment/siddhi-files<br> — /etc/timezone:/etc/timezone:ro<br> — /etc/localtime:/etc/localtime:ro</blockquote><ul><li><a href="https://up.maralhost.com/download1342.html">siddhi-runner-ubuntu.yml download</a></li><li>If this file link was broken, email me to update it. <a href="http://mortezahosseinee@gmail.com/">mortezahosseinee@gmail.com</a></li><li>In terminal:</li></ul><blockquote>docker-compose -f siddhi-runner-ubuntu.yml up -d</blockquote><blockquote>Pulling siddhi-runner (siddhiio/siddhi-runner-ubuntu:5.1.2)…<br>5.1.2: Pulling from siddhiio/siddhi-runner-ubuntu<br>32802c0cfa4d: Pull complete<br>…<br>507cdfbd27d8: Pull complete<br>Digest: …<br>Status: Downloaded newer image for siddhiio/siddhi-tooling:5.1.2<br>Creating directory_name_siddhi_runner_ubuntu_1 … done</blockquote><ul><li>-d is optional: Running docker-compose up -d starts the containers in the background and leaves them running.</li><li>Now siddhi-runner is up. this container does not have any dashboard.</li><li>You can put siddhi app file in declared volume, in my example, i set siddhi-app volumes in same directory with siddhi-tooling.yml file and named it siddhi-files-tooling. (You need sudo permission to put a file in that directory). just after paste file ther, siddhi runner execute siddhi-app in next running cycle. Obviously deleting the file results stop siddhi-app.</li><li>Also, you can use siddhi-api to get, send and delete siddhi apps using <a href="https://siddhi.io/en/v5.1/docs/rest-guides/siddhi-app-api/">siddhi-api documentation</a>.</li></ul><h3><strong>WE’RE DONE.</strong></h3><p>Siddhi - part2 - Create First Siddhi app in siddhi-tooling then run with siddhi-runner : SOON</p><p>Siddhi - part3 - Using Siddhi apis to create(start or run), get(list all running siddhi apps) and delete(stop or remove) siddhi apps : SOON</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e7b0d62b9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>