<?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 Sony Mathew on Medium]]></title>
        <description><![CDATA[Stories by Sony Mathew on Medium]]></description>
        <link>https://medium.com/@sonymathew?source=rss-e8b359d70951------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*BxQ6Xo0gaaFjTJSt5VyCaQ.jpeg</url>
            <title>Stories by Sony Mathew on Medium</title>
            <link>https://medium.com/@sonymathew?source=rss-e8b359d70951------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 01:02:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sonymathew/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[Background processing in Node.js with RabbitMQ]]></title>
            <link>https://blog.devops.dev/background-processing-in-node-js-with-rabbitmq-a605ebba9b63?source=rss-e8b359d70951------2</link>
            <guid isPermaLink="false">https://medium.com/p/a605ebba9b63</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[rabbitmq]]></category>
            <category><![CDATA[background-jobs]]></category>
            <dc:creator><![CDATA[Sony Mathew]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 00:47:35 GMT</pubDate>
            <atom:updated>2025-01-19T17:17:05.716Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What are background processes?</strong></p><p>When somebody tells me about background process, the picture that comes to my mind is something that is not seen by anybody, but that does some kind of work behind the scenes. In reality, it is pretty close to this definition. Background process in a web application scenario is some process which does some work away from the normal request-response loop. Some good examples of this are sending emails, generating reports, scheduling tasks, system monitoring or even sending out notifications to users as an effect of something that happened in the system.</p><p><strong>The need for background processing</strong></p><p>Typically in web applications, great efforts are made to maximize the responsiveness by getting only the critical data required to render the current page to the screen as fast as possible, thereby completing the user request and handing back the control to the user. Ideally, requests taking more than a second or few seconds should be cached or split and moved to a background process. Typically when a request comes in, web-server spawns a thread to handle it. As long as the request is not served, the thread remains alive and will not be returned to the thread pool. If web-server takes too long to respond, other requests will be queued, response time gradually degrades, thread pool gets exhausted and your web-server crashes.</p><p>Every web application, medium to large, requires some kind of background processing mechanisms to work smoothly. Usually, this is done via some kind of queueing mechanism. There are many message brokers available with popular ones being RabbitMQ, Kafka, ActiveMQ to name a few. Sidekiq (which is based on Redis) is used for job processing in Rails Applications. AWS also provides a message-queue service called SQS, which hardly requires any setup and is fully managed by AWS.</p><p><strong>Options for background processing in NodeJS</strong></p><p>There are many options for doing background processing in NodeJS. For the people who came from Rails world, there is <a href="https://github.com/taskrabbit/node-resque">Node-resque</a>. Then there is <a href="https://github.com/OptimalBits/bull">Bull</a> and <a href="https://github.com/Automattic/kue">Kue</a>, for handling jobs and messages, which makes use of Redis for queuing. We can also use RabbitMQ for message-queues, which has a wide set of configurations to match your requirements. You can read more about the options for background processing in NodeJS in the StackOverflow thread <a href="https://stackoverflow.com/questions/31009340/background-processes-in-node-js">here</a>.</p><p>In this article, we are going to discuss using RabbitMQ for background processing in NodeJS.</p><p><strong>Setting up RabbitMQ</strong></p><p>In Linux Systems, you can directly use the following command to install `rabbitmq-server`:</p><pre>sudo apt-get install rabbitmq-server</pre><p>In MacOS the best way is to install it via Homebrew. You can do it with the following command.</p><pre>brew install rabbitmq</pre><p>A comprehensive download FAQ and options are given <a href="https://www.rabbitmq.com/download.html">here</a> in the RabbitMQ official download page. You can find the instructions to download the RabbitMQ installer for Windows systems also there.</p><p>After you install the rabbitmq-server, make you sure you did it correctly by typing rabbitmq-server in your terminal. In MacOS, this is what it shows in the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vfbaw-z-5BkYZTEEAHu7OA.png" /><figcaption>rabbitmq-server</figcaption></figure><p><strong>Basics of RabbitMQ</strong></p><p>RabbitMQ is one the most popular open-source message broker. It supports multiple messaging protocols, has distributed deployment configuration support for high scalability and availability along with message queuing, delivery acknowledgment, flexible routing to queues and multiple exchange types.</p><p>The two main entities in RabbitMQ are exchanges and queues. Queues are the place where the messages are actually stored. All the messages are published on to an exchange. The queues are connected to exchanges through a binding. Bindings contain the info on how the queue is connected to the exchange. It has something called routing rule, by which the exchange decide whether to forward the message to a queue or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*DVq4ZrDuwK9qpE1lEfiTtg.png" /><figcaption>RabbitMQ flow</figcaption></figure><p>A queue can be bound to many exchanges with different routing rules. The exchanges can be of different types namely direct, topic, headers and fanout. Fanout exchanges are typically used when the messages on the exchange need to be forwarded to all the queues registered in the exchange. Fanout exchange is like mindless broadcasting. In a direct exchange, a message goes to the queues whose binding key exactly matches the routing key of the message which gives a level of filtering of messages forwarded to a queue. The topic exchange is like a direct exchange, with advancements in routing, used for multicast routing of messages. You can have routing rules with partial matching of the topic name. A headers exchange is designed for routing on multiple attributes that are more easily expressed as message headers than a routing key.</p><p><strong>Setting up a web server</strong></p><p>First lets quickly set up an <a href="https://expressjs.com/en/starter/installing.html"><em>expressjs</em></a> project.</p><pre>$ mkdir myapp<br>$ cd myapp<br>$ npm init</pre><p>With the above commands, we created a directory called myapp, made that the current working directory and initialized an npm package. Now we will install expressjs by the following command.</p><pre>npm install express --save</pre><p>Now we will create a file named index.js</p><pre>touch index.js</pre><p>From the express tutorial here, we will make a simple web app which shows a “Hello World” message. Edit the index.js to have the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa4037a9432bbca48ca3365c8cf87f0c/href">https://medium.com/media/aa4037a9432bbca48ca3365c8cf87f0c/href</a></iframe><p>Now run this web app with the following command :</p><pre>node index.js</pre><p>Now hit the URL http://localhost:3000 in your browser. If everything was done right, you should be seeing a Hello World! message.</p><p><strong>Sending messages to exchange</strong></p><p>There are a number of clients for RabbitMQ in many different languages. In this tutorial we use <a href="http://www.squaremobius.net/amqp.node/">aqmp.node</a> client. There are mainly two types of APIs that this client provides. One is callback based and the other is promise based. You can choose whichever fits your style or requirement. In this tutorial, we will use callback-based API. First, we will install aqmp.node client.</p><pre>npm install amqplib</pre><p>Now in the same directory, we will create a send.js file and add the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa1e6e6785215e48d40e1790a0f93e85/href">https://medium.com/media/aa1e6e6785215e48d40e1790a0f93e85/href</a></iframe><p>Here in the above code, we load the aqmp callback_api, open a connection to RabbitMQ, create a channel to communicate with RabbitMQ, assert a default queue named hello and send a message to that queue. While asserting the queue, we pass an option { durable: true } which makes the queue to persist even after the connection is closed. While sending a message to the queue, we pass an option { persistent: true } which makes the message persist in the queue. Here we do not see the exchanges because we are making use of default exchange. You can even give the queue name as blank, in which case the RabbitMQ server will generate a random name for it.</p><p>Now run the following command to send a message to rabbitmq server.</p><pre>node send.js</pre><p>There is a rabbitmq-management plugin that comes with rabbitmq package. The rabbitmq-management plugin provides an HTTP-based API for management and monitoring of RabbitMQ server, along with a browser-based UI and a command line tool, rabbitmqadmin.</p><p>You can access the browser-based UI by typing in <a href="http://localhost:15672/">http://localhost:15672/</a> in your browser. After running your send.js, you can go to <a href="http://localhost:15672/#/queues">http://localhost:15672/#/queues</a> . There you can see a queue named hello and total message count as one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYcO8iYXuJt-EX9teguJug.png" /><figcaption>RabbitMQ Management UI — Queues</figcaption></figure><p>We have successfully send a message to a default exchange onto a queue in RabbitMQ server. You can read more on this <a href="https://www.rabbitmq.com/tutorials/tutorial-one-javascript.html">here</a>.</p><p><strong>Receiving messages from queue</strong></p><p>We will first create aworker.js file in the current working directory with the following command.</p><pre>touch worker.js</pre><p>In this script, we open a connection to rabbitmq, then create a channel, then assert the queue and then consume the queue through the channel.</p><p>Modify worker.js to have the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/64f19b0627b5f32d32e1a1667f7437bc/href">https://medium.com/media/64f19b0627b5f32d32e1a1667f7437bc/href</a></iframe><p>While consuming messages in a queue, in the real world we might need to have some kind of acknowledgment after processing the message so that even if the processing fails the message is not lost. In the code above we pass an option { noAck: true } to consume method, which means that the rabbitmq server won’t wait for the acknowledgment from the client side after processing. The server will delete the message from the queue as soon as it is delivered to the client. If you don’t want the server to delete message once it’s delivered, but rather you want the server to delete message from queue once you successfully processed it, you can pass the option { noAck: false } and in the code, inside consume, after you process the message, you can acknowledge it by channel.ack(msg) .</p><p>Now let’s run our worker to consume the queue by the following command.</p><pre>node worker.js</pre><p>You will see the following output in the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XcAtW7BGJWd8NkaYfYZiaw.png" /></figure><p>Now if you go to <a href="http://localhost:15672/">http://localhost:15672/</a>#/queues you can see that the messages count in the queue is zero.</p><p><strong>Putting it Altogether</strong></p><p>In the above sections, we have seen how to send messages to rabbitmq and consume it. Now let’s make use of it in our web app.</p><p>Let’s chart out a basic workflow of our example website. Consider our website having an email subscription form. Users will give their email and click submit button. This should send an email to the user and display a thank you message.</p><p>Since the flow is set, let’s think of how we can do this. Sending an email is a time-consuming operation compared to other web requests. So let’s take that email sending-part out of the main request-response loop. We will send the email to the exchange and our worker will take that from the queue, process it, send the email and send an acknowledgment to the server so that server can delete the message from the queue.</p><p>We will use <a href="http://ejs.co/">ejs</a> for rendering HTML pages and <a href="https://nodemailer.com/">nodemailer</a> for sending emails. So let’s install those packages.</p><pre>npm install ejs<br>npm install nodemailer</pre><p>Then let’s create an HTML form to get the emails from the user which will be rendered on the landing page. Create a directory called views and file called index.html inside views directory. The content of index.html is given below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e1bc8a3e1665273482487ca25d435df/href">https://medium.com/media/7e1bc8a3e1665273482487ca25d435df/href</a></iframe><p>Now we need to display the form in the landing page. For that we modify our index.js to have the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e0469510e3167d97717ee875a4f2a2e/href">https://medium.com/media/7e0469510e3167d97717ee875a4f2a2e/href</a></iframe><p>This will render the HTML form with a single input field for email and a submit button. Form submit is handled by /subscribe . On subscribe, we will send the email details to the rabbitmq queue.</p><p>Now run node index.js for the server. Make sure your rabbitmq-server is running. Go to http://localhost:3000 . You will see the following page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*sL8iaDx_0KFDjp4YL08uZg.png" /><figcaption>Subscription form</figcaption></figure><p>Now type in an email and click submit. You will see a page with the message Thank you. You are successfully subscribed. . Now if you go to rabbit-mq browser UI at http://localhost:15672/#/queues you can see a new queue named email with a total message count of 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBjLQIgrjf6xIyP-LupBlg.png" /><figcaption>Email queue</figcaption></figure><p>Now let’s go back to our worker and make the worker consume the email queue and send an email. We will use nodemailer to send emails. Nodemailer supports ethereal.mail accounts for testing. We will leverage that for sending emails in this tutorial.</p><p>Edit worker.js to have the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bbfe5526bc3f822d79449fad3deb772/href">https://medium.com/media/0bbfe5526bc3f822d79449fad3deb772/href</a></iframe><p>Now run the worker in another tab of the terminal with node worker.js . You can see the following message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7xl7DiC95jz0-Pn_yXlwQ.png" /><figcaption>worker log</figcaption></figure><p>So in the above example, we have successfully isolated the email sending from the normal request-response loop. This can be extended to many other use-cases like report generation, fetching data from third party APIs, complex calculations, scheduling jobs …etc.</p><p>You can view all the files used in the project <a href="https://github.com/sony-mathew/rabbitmq-with-node">here</a>.</p><p>Congrats — you have successfully published messages to rabbitmq-server and wrote code to implement the consumption and processing of that messages. Feel free to try the same exercise for other use-cases also.</p><p>Don’t hesitate to reach out with general feedback or with questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a605ebba9b63" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/background-processing-in-node-js-with-rabbitmq-a605ebba9b63">Background processing in Node.js with RabbitMQ</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part One: Pros and cons of transitioning to a remote job]]></title>
            <link>https://medium.com/@sonymathew/part-one-pros-and-cons-of-transitioning-to-a-remote-job-bc8fec46bb1c?source=rss-e8b359d70951------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc8fec46bb1c</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <dc:creator><![CDATA[Sony Mathew]]></dc:creator>
            <pubDate>Fri, 13 Mar 2020 11:13:08 GMT</pubDate>
            <atom:updated>2020-03-13T11:13:08.732Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pros and cons of transitioning to a remote job</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bbuv7x9AU5atUNiSbwXxNw.jpeg" /></figure><p>Working remotely was a controversy when it was first introduced with a lot of backlashes. At that time, people couldn’t fully grasp the idea with people being distributed around the globe and working together for a single goal. We have come a long way from there with the invention of a number of great tools for collaboration and communication without compromising the quality and the scale of work performed.</p><p>In recent years remote jobs have become one of the popular job categories. There are dedicated job boards for remote jobs with actively updated listings. (<a href="https://remoteok.io/">1</a>) There are even funds exclusively for startups that help remote work or which leverage remote work in unique ways. (<a href="https://www.remotefirstcapital.com/">2</a>) There are companies that help you hire people from anywhere around the globe without worrying about payroll, benefits, and compliance. (<a href="https://remote.com/">3</a>)</p><p>I find it confusing-amusing when people suddenly start talking about and looking for remote jobs with the recent news on the Coronavirus outbreak.</p><p>I have been working remotely for more than a year now. I decided to give it a try in 2018. The following are my observations on different aspects of a remote job.</p><h3><strong>The good things</strong></h3><p><strong>Family time</strong></p><p>You get to spend quality time with your family. You get to support your family when they need it. When you have a newborn in the family or when your parents are old, it needs all the extra support that you can get or else it strains everybody. If you have any medical conditions or any of your family members have any medical conditions, this makes your life and your family’s life easier.</p><p><strong>Pursue a serious hobby</strong></p><p>With a remote job, pursuing a serious hobby that demands serious attention is easier than with a regular job. You can align work and hobby time in such a way that you utilize the breaks as efficiently as possible. Be it swimming, archery, singing, dancing, playing an instrument, writing, painting, movie-making, teaching, volunteering, building a garage or bodybuilding, it is much easier to align this to suit your timings.</p><p><strong>Travel</strong></p><p>For many people, this is the primary advantage of being remote. You can travel as you wish locally or abroad as long as you have a laptop and decent internet. This indeed is one of the best-advertised benefits. You get to explore the world. To meet a friend on the other side of the world and spend time there. Wander around and explore cuisines, culture, art, architecture, and people. Sunrise after a trek over a mountain 🏔, beautiful sunset lying on the beach 🏖 , watching over stars while camping in a desert 🏜, all possibilities limited to your imaginations.</p><p><strong>Uninterrupted work</strong></p><p>When we are in the middle of some serious work, we do not want to be interrupted. It takes a lot more time to get back to where we were, once we get back from the interruption. There are days in the office when you look back in the evening, it was just a bunch of unproductive meetings, coffee breaks, and lunch. The feeling of zero accomplishment washes over you. So to catch up on what you were supposed to do, you have to put in more time, stay back when others leave so as to get some uninterrupted time to finish the work. With remote work, communication is mostly asynchronous. If you have any meetings, you would be notified at least a day before. This gives you focused time to do your work efficiently, smartly and with planning. New Calport has written an entire book on the power of deep work: <a href="https://www.calnewport.com/books/deep-work/">Deep Work — Rules for Focused Success in a Distracted World</a>.</p><p><strong>Running errands</strong></p><p>You can run the errands as per your convenience or the time at which the errand demands it. When you have to go to a bank, do things which might require back and forth commute, take your parents to checkups, pick-up kids from school on time or do regular shopping on less crowded time are all possible without compromising your work.</p><h3><strong>The not so good things</strong></h3><p><strong>Social Life</strong></p><p>After our college life, most of the social interaction on a daily basis is with our colleagues based on our career. Typically for a developer, designer, product manager..etc, this is the primary social interaction. I’m talking about normal lazy humans who are not part of any clubs or volunteering or involvement in social activities unless absolutely compelled. With a remote job, I have felt that my social life has collapsed to a couple of go-to friends. If you have a breakup or a hard time with something unless you are settling things or traveling I would not advise you to take up a remote job. It’s hard to be alone and sane at the worst times. With a remote job, it’s just digital interaction on a daily basis that you have with your colleagues which is not as meaningful as the one you develop when you go for a coffee or a movie or some activity or weekend plans together. In my opinion, definitely, your social life is compromised with a remote job.</p><p><strong>Work-life balance</strong></p><p>It’s very easy to mix work-life balance in a remote job. If you are working from home and working from your own room, there is no longer a wall separating your office and home. Therefore work and life gets mixed up in all different ways you can imagine. If you do not have a fixed time for work in general, sometimes you push other things in front of work, could be your distractions, could be your family, could be your pets, it could even be Netflix, thinking that this is flexible, so I can work later and finish my tasks. This is a dangerous loop unless and until you control the narrative. And being remote, if it’s a global team, they might ask you to have meetings at odd times of the day which is not a good thing. You have to have some planning, discipline, and effort to follow it to have a good work-life balance.</p><p><strong>Societal reactions</strong></p><p>Being from a small town in India, where the community comes before the individual, people tend to make comments on every single action that you take. Not everybody is aware of what exactly remote job means. In their eyes, when somebody holes up in the house 24x7 and says that he/she is working for a company earning a decent salary, it calls for suspicion. How can somebody do nothing and earn this much? Is this some scam? Are they lying? This is very common and it’s hard to make everybody understand what you are doing and how you are doing it. Even when you go to a bank, for a loan or a credit card, the same situation follows. When they ask where are you working, you have an answer. But when they ask for the current address and permanent address and it does not match the company address, raise their eyebrows in suspicion. Then you have to sit down with them to explain all about the nature of remote work.</p><p><strong>Depression</strong></p><p>This is one of the most common side effects of a remote job. When you transition from an office setting with a lot of friends and colleagues to a remote job, the vacuum is real. Suddenly you are on your own. For a few days, it might seem wonderful. Then slowly loneliness creeps in. In a general sense, this is when you are living on your own without much involvement in any social activities. Even when you are with family if it’s only the family that you see every day after a point, days become monotonous. Many of my friends have talked about depression after getting a remote job. If you are working from a co-working space or meeting friends regularly or involved in some social activities or traveling, you might be able to avoid this.</p><p><strong>Employment Perks</strong></p><p>Not all remote companies have an established local entity to hire and manage payrolls. Most of the time, it’s the smaller companies that support remote jobs and it is an overhead for them to set up an entity in every country they hire. Due to this reason, usually smaller companies hire people in another country as contractors. There is a huge difference between an employee and a contractor. With hiring as a contractor, the company need not worry about the local laws and regulations of employment. With this arrangement, the employee does not receive the full extent of employment perks or benefits like medical/life insurance, stock options, child care, gratuity, retirement, and pension plan contributions and are not protected by the laws for minimum wage or overtime work, etc. There are exceptions and the companies which have local entities provide these benefits as well.</p><blockquote>“It’s all about quality of life and finding a happy balance between work and friends and family.”<br>– Philip Green</blockquote><p>PS: All of the above opinions are mine and mine alone. There will always be exceptions. Be that exception. Grow that exception to become the new normal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc8fec46bb1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When the tides stop and life drifts]]></title>
            <link>https://medium.com/@sonymathew/when-the-tides-stop-and-life-drifts-d509cd57a8f9?source=rss-e8b359d70951------2</link>
            <guid isPermaLink="false">https://medium.com/p/d509cd57a8f9</guid>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[boredom]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Sony Mathew]]></dc:creator>
            <pubDate>Tue, 27 Jun 2017 06:14:01 GMT</pubDate>
            <atom:updated>2017-06-28T05:20:40.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*suh0czA4kUmu-fMYyYERpQ.jpeg" /><figcaption>““You don’t have to be invisible to disappear.” ― Rebecca McNutt</figcaption></figure><p>Everybody has been through this phase of life. It’s imminent.</p><p>That phase where you are going up and down the tides along with others around you and you don’t really care. But one day you wake up and find that you are standing on thin ice and you don’t have control over your life and there is nothing that motivates you to push forward.</p><p>And with no motivation left in your veins, you just start being lazy.</p><p>You just do the bare minimum required to survive and slowly life turns monotonous.</p><p>At this point, a person can react in two different ways:</p><p>The first one - the people who are inherently insecure, lazy and pessimistic will continue what they are doing and settle. They are happy with what they have.</p><p>But the second kind of reaction, exhibited by the curious and the inquisitive, is something remarkable. When the boredom becomes so intolerable, it becomes motivation for their next venture. They just take a leap of faith.</p><blockquote>Boredom always precedes a period of great creativity.</blockquote><blockquote>- Robert M.</blockquote><p>When life drifts away, as it will often, the choice is yours whether to take control of it or leave it as it is. Being a theist has advantages in this situation, as you can blame the creator for all that is happening around you and hope for something better to happen.</p><p>But, here I have a counter argument to the theist — Isn’t the creation already done? Everything that is happening to you is a result of everything that has happened over time, right? In that case, aren’t you truly the maker of your destiny?</p><p>This period of uncertainty is the time when you think about life, explore opportunities, and most importantly, only time you find yourself so restless and relaxed at the same time.</p><p>The researchers, led by psychological scientist John Eastwood of York University in Ontario, Canada, define boredom as “an aversive state of wanting, but being unable, to engage in satisfying activity,” which springs from failures in one of the brain’s attention networks. When your brain does not pay attention, the strength of neural connections goes down. New neural connections are made in your brain when you learn things and have new experiences. Only when your brain is active, you feel good. New challenges, new learnings, new experiences be it a thought, idea, art, music, food activates the neurons in your brain to keep you motivated.</p><p>There is a famous story about King Bruce. He had a powerful army under his command and ruled a big kingdom. One day he decided to attack his neighbouring country. But his army was defeated. Being a very powerful leader, this defeat was a huge blow for him. He felt ashamed and ran to a cave and hid there.</p><p>While sitting there he saw something beautiful. There was a spider on the mouth of the cave. It was weaving a cobweb. As the King watched, the spider was trying to connect the slanting edges of the cobweb, failing constantly. But it was trying again and again and finally during its 8th try, it succeeded. This was eye opener for the King. He then went back and assembled a much bigger army and with better planning, he defeated the enemy. Be it a story or real life incident, the essence remains the same.</p><blockquote>Sometimes one small thing can make you motivated to conquer the world.</blockquote><p>The primary learning is that, if you don’t make an effort to do something that you haven’t done before, there is nothing new to learn or experience. Unless you are a person who is motivated when commanded, you should totally strive to experience something new, every single day, to keep you motivated.</p><blockquote>“It is a mistake to try to look too far ahead. The chain of destiny can only be grasped one link at a time.” <br>― Winston S. Churchill</blockquote><p>Don’t worry too much about what is to come next, but that doesn’t mean you shouldn’t have future plans — especially regarding your career and finances. It doesn’t hurt to have a plan.</p><p>So this is my final advice to you :</p><p>Travel a lot, explore new cuisines, try out some recipes, learn a new language, go out with friends, watch some good movies, be lonely, be social, be humble, be patient, moreover be honest, have some savings, learn to say sorry and thank you, do some exercises, listen to people — everybody has a different story, don’t compare yourself to others, avoid loud and aggressive people, hone your skills, sing in the bathroom, enjoy the rain, retrospect often, go to beaches and parks, climb the mountains, trek through the woods, play some sports, stand up for your rights, take care of your family, call a long lost friend, do what you love, plant some trees, have a pet, lower your expectations, make promises and keep them, make peace with yourself, be yourself, gain knowledge, grow wise… until you drift apart in the wilderness… forever.</p><p><em>KAHB.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d509cd57a8f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>