<?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 Rina Andria on Medium]]></title>
        <description><![CDATA[Stories by Rina Andria on Medium]]></description>
        <link>https://medium.com/@rina-andria?source=rss-8cab2531f080------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-2VOaztTUEAZiaeGqWJQPQ.jpeg</url>
            <title>Stories by Rina Andria on Medium</title>
            <link>https://medium.com/@rina-andria?source=rss-8cab2531f080------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:24:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rina-andria/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[AWS EventBridge for dummies]]></title>
            <link>https://rina-andria.medium.com/aws-eventbridge-for-dummies-b87cfb25193b?source=rss-8cab2531f080------2</link>
            <guid isPermaLink="false">https://medium.com/p/b87cfb25193b</guid>
            <category><![CDATA[eventbridge]]></category>
            <category><![CDATA[aws-eventbridge]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[eventbus]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <dc:creator><![CDATA[Rina Andria]]></dc:creator>
            <pubDate>Thu, 18 Mar 2021 18:25:56 GMT</pubDate>
            <atom:updated>2021-03-18T18:25:56.667Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-FoeDJfMFRprzF5BLzUSQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@pixabay?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pixabay</a> from <a href="https://www.pexels.com/photo/clear-light-bulb-on-black-surface-356043/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>From its name <strong>AWS</strong> <strong>EventBridge</strong>, I was scared, really scared to discover what lies beneath the second word.</p><p>I was expecting something complex, something hard to understand, something unusual.</p><p>The first time I put my hands on the AWS documentation though, my breaths started to be steady, then my mind started to reconstruct, and at the end, my eyes lightened up.</p><p>Here is the simplest/the most basic thing I got from it:</p><p>Let’s imagine something simple:</p><blockquote>It’s our everyday topic the “weather”. There are constant and endless weather events we get every second, minute, or hour. Depending on if it’s rainy, sunny, or windy though, we need to know different parameters like wind speed, temperature, humidity, or precipitation. So everyone will react differently according to those pieces of information. Some will be happy with rainy weather, others will welcome any sun.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/74d830ed16a7c3715926a5aac61ddb08/href">https://medium.com/media/74d830ed16a7c3715926a5aac61ddb08/href</a></iframe><p>Above in <strong>notifyWeather</strong>, a custom event is being created and sent to the EventBridge. You should specify the <strong>Source</strong> of the event (here <strong>WeatherData</strong>), the <strong>DetailType</strong> of the event (what kind of message do you want to convey?), and eventually, the <strong>Detail</strong> which corresponds to the <strong>message</strong> (payload) you want to send to the event bus.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5ccaa9c1e62b60b7942298362128213/href">https://medium.com/media/c5ccaa9c1e62b60b7942298362128213/href</a></iframe><p>Then somewhere else we expect to receive <strong>WeatherData</strong>. How do we handle this data? If it’s sunny or rainy in our case. With the code above, we specify the handler which will be processed whenever we receive an event of source <strong>WeatherData</strong>, and type <strong>Sunny</strong> or <strong>Rainy</strong>. We don’t care about the other types in this specific case. We could have reacted as well in case it snows for instance.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c4c7a1b1515a0f0a46c6662c8bc63bc/href">https://medium.com/media/8c4c7a1b1515a0f0a46c6662c8bc63bc/href</a></iframe><p>In case you use AWS services, don’t forget to give you service the right on <strong>events:PutEvents</strong> actions.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/237c1c72a1ddef5a4b60bf371888d98c/href">https://medium.com/media/237c1c72a1ddef5a4b60bf371888d98c/href</a></iframe><p>And in our handler, we do what we need to do. Here we are happy because it rains, and disappointed because the sun will heat up again. For others, it might not be the case :). So this is just one example of handler. You can have many of those.</p><p>So that&#39;s a simple example of a use case for EventBridge: it connects Applications through events (Even driven architecture).</p><p>Don’t take it for granted though! This example is just a tiny part of the possibilities the AWS EventBridge can do. It can do complex things. You can connect it to Saas applications that act as event sources. You can create more complex rules than what I gave in this example, and target HTTP API endpoint instead of AWS services. For more details, I encourage you to read the AWS documentation which provides much more information than here. Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b87cfb25193b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Life-saving AWS EventBridge is worth everything]]></title>
            <link>https://rina-andria.medium.com/life-saving-aws-eventbridge-is-worth-everything-9c1b6b2b9e7a?source=rss-8cab2531f080------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c1b6b2b9e7a</guid>
            <category><![CDATA[aws-eventbridge]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Rina Andria]]></dc:creator>
            <pubDate>Fri, 12 Mar 2021 16:33:28 GMT</pubDate>
            <atom:updated>2021-04-19T20:17:54.161Z</atom:updated>
            <content:encoded><![CDATA[<p>While building <a href="https://rina-andria.medium.com/book-sharing-app-made-with-flutter-1af861faf886"><strong>ShareBook</strong></a>, I was stumbling upon a long-running REST call I myself created :). I thought it was the most well defined/sequenced solution ever for sharing a book.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*io6gnlwQBJImt0S5FWDE4w.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@cottonbro?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">cottonbro</a> from <a href="https://www.pexels.com/photo/multi-colored-plastic-round-toy-4614200/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>BUT, it took so much time that it totally broke the user experience of sharing a new book. This is what happened when a user shared a book:</p><ul><li>I take first the place where the book is available, then calculate the distances of this place from the other existing places</li><li>then I gather all the users’ tokens where I need to send the notifications</li><li>create the book in the database</li><li>add the pictures of the book</li><li>in case all is well after the previous steps, then a notification is sent to all the (eligible) users</li><li>then respond OK — 200</li></ul><p>Now after waiting for every step, all that took around <strong>10 seconds</strong> to execute, and sometimes even the request timed out. It’s fast, isn’t it?</p><p>At first sight, I thought I could just change the <strong>AWS Lambda</strong> functions invocation by removing the <strong>await</strong> keyword I had before every <strong>REST calls</strong>. Sounds easy right!? But I realized all the calls were not performed because the calls didn’t even have the time to be fully transferred to the servers, and the main thread has already finished its job: too bad though it was really really really fast!</p><p>Then I googled a bit and found that there is a way to perform asynchronous calls by just adding a header <strong>X-Amz-Invocation-Type</strong> with a value <strong>Event</strong> to the calls. It’s already better the calls were not failing/timing out anymore, plus the execution time decreased a bit (just a little bit). But it was still long to make the user close the App and check her/his network.</p><p>After some good half-sleep, I was wondering if AWS has anything like RabbitMQ or Kafka or any other tools which can handle asynchronous tasks, and where I can just <strong>DELEGATE</strong> all the jobs I need to perform. It would be nice ;)!</p><p>So in the end, I found somewhere (guess where) that AWS has the so-called <strong>AWS EventBridge </strong>which is a <strong>serverless</strong> event bus to make event-driven applications simpler.</p><p>Hurray! After a few readings and some samples projects exploration, I decided to change the course of the App by using this technology: for sharing a new book, for sending notifications, for processing distances calculation. Everything seems so simple now. Of course, this is fully subjective!</p><p>Now, here is what happen when someone is sharing a book:</p><ul><li>from the place where the book is shared, I create an event that processes the calculation of the distances. <strong>It will be done in the background, no need to wait.</strong></li><li>in parallel, I gather the users’ tokens where to send the notifications</li><li>then I create the book and add its pictures to the database: for those, I have no choice but to wait until it is successfully done</li><li>and return directly OK</li><li>just before returning OK though, for sending the notifications, I just create the event that is triggering the process which is taking care of sending them, still in the background. Those notifications are persisted before being sent in case the service is down while sending</li></ul><p>Today the time to share a book is drastically reduced to around 1 to 3 seconds, depending on the fact there are pictures or not, and the user network. The event bus itself was not hard to set up and to be up and running. I will put up a small example with code for this. It’s probably clearer <a href="https://rina-andria.medium.com/aws-eventbridge-for-dummies-b87cfb25193b">to see it in action</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c1b6b2b9e7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dart packages I use for ShareBook — Flutter]]></title>
            <link>https://rina-andria.medium.com/dart-packages-i-use-for-sharebook-flutter-5c20548cd2ab?source=rss-8cab2531f080------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c20548cd2ab</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart-package]]></category>
            <dc:creator><![CDATA[Rina Andria]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 13:51:40 GMT</pubDate>
            <atom:updated>2021-03-09T19:18:12.677Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dart packages I use for ShareBook — Flutter</h3><p>As promised in my previous <a href="https://rina-andria.medium.com/book-sharing-app-made-with-flutter-1af861faf886">article</a> folks, here are the packages I use for ShareBook (<a href="https://apps.apple.com/ch/app/sharebook/id1550247828?l=en">iOS</a> and <a href="https://play.google.com/store/apps/details?id=com.rina.andria.book.share">Android</a>) and what I use them for.</p><p>It’s going to be a long list but I think it’s worth to go through them because they (communities) helped a lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AesqHLLqYxrn3gfuxLTZog.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@scottwebb?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Scott Webb</a> from <a href="https://www.pexels.com/photo/rectangular-white-building-under-blue-sky-1544944/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>1 — <strong>badges</strong>: an indicator for the user of what changes in the current context. To pinpoint something that needs to be taking into account. To display additional information without taking all the intention.</p><p>2 — <strong>country_codes</strong>: get the list of country ISO codes. It contains much more information than that, but this time I only needed the codes.</p><p>3— <strong>crypto</strong>: used for hashing credentials in addition to <strong>encrypt</strong>. Yes, the credentials you use with this App is encrypted and secure. Even I do not know what you enter in those text fields.</p><p>4 — <strong>currency_picker</strong>: I did not use the picker itself because of the look and feel (I did not like it, just personal :). I just needed the list of possible currencies.</p><p>5 — <strong>device_info</strong>: it provides many insights about the user’s device. That information helped me to investigate, to reproduce, and to fix bugs.</p><p>6 — <strong>easy_localization</strong>: a simple and easy to use package to localize labels. It has some other interesting features like pluralization, templating, and much more.</p><p>7 — <strong>email_validator</strong>: light email validation package.</p><p>8 — <strong>encrypt</strong>: I coupled it with the <strong>crypto</strong> package to encrypt the credentials.</p><p>9 — <strong>firebase_messaging</strong>: awesome package to send notifications. I found it hard to configure for the first time (like every first time). But once you get the concept and the mechanism, it’s easy to reproduce. I might create a separate article for this one ;)</p><p>10 — <strong>flutter_barcode_scanner</strong>: wonderful package including single or continuous scan functionality</p><p>11 — <strong>flutter_image_compress</strong>: like every Webapp or App project :), as soon as there is a use of images, a resize/compress of those images are necessary, otherwise your database will be soon dead.</p><p>12 — <strong>flutter_libphonenumber</strong>: wow, this one was a big help for providing the phone numbers format to the users. The numbers are more readable and more meaningful.</p><p>13— <strong>flutter_statusbar[color/_text_color]</strong>: to change the colors of the status bar elements. Depending on the theme, I needed to switch the colours to have great contrast.</p><p>14— <strong>flutter_spinkit</strong>: package with a wide range of loading indicators. The choice is yours!</p><p>15— <strong>flutter_svg</strong>: I use it a lot to display SVG icons from assets, so you are not restricted to Cupertino or Material icons. No need to say how the resolution of the images is.</p><p>16 — <strong>get</strong>: Oh yes, this one is really interesting as well. So far, I only used the snackbar functionalities it has which is much easier to use than the material one. And it’s without carrying about the context people :). In its gut, it has more than that though, so I am just waiting for a free timeslot in my BUSY agenda to explore the unknown world.</p><p>17 — <strong>geolocator</strong>: today almost every App uses geolocation. This one is widely used. It has quite straight forward usage and clear documentation.</p><p>18 — <strong>google_maps_flutter</strong>: to display the city where a book can be found.</p><p>19 — <strong>image_picker</strong>: to select from the photo gallery or to take a picture from the camera, for the profile picture or the book’s additional pictures.</p><p>20 — <strong>intl</strong>: I am sure you all know this one :), Internalization! A bit similar to what we have in the web ecosystem. I mostly used it for formatting dates and money.</p><p>21— <strong>shared_preferences</strong>: locally (proper to the device) store key-value pairs. It’s similar to <strong>cookies</strong> and <strong>localStorage</strong> in web jargon.</p><p>22 — <strong>tuple</strong>: I would expect Dart to have this kind of data structure, but it seems not. I am a bit disappointed :(</p><p>It’s a long list of packages that I am not used to having, compared to the javascript Frontend world. Of course, it depends on the size of the web projects but I would say from my case it’s usually up to 15 the maximum number of npm packages I had in a frontend project. We only add new packages unless it’s really needed (complex features), and we can’t do it ourselves without too much effort.</p><p>But I wouldn’t even think I could achieve to build this App without those. Or maybe I could but not the 1 month time period I had for ShareBook. Here I am just talking about the Frontend part. The backend part is another story I would need to write down.</p><p>So I am really grateful for the communities behind those packages, working days and nights to provide us with a panel of ready to use tools and system. And again thank you Flutter to make this happens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c20548cd2ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Book sharing App made with Flutter]]></title>
            <link>https://rina-andria.medium.com/book-sharing-app-made-with-flutter-1af861faf886?source=rss-8cab2531f080------2</link>
            <guid isPermaLink="false">https://medium.com/p/1af861faf886</guid>
            <category><![CDATA[mobile-apps]]></category>
            <category><![CDATA[sharing]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Rina Andria]]></dc:creator>
            <pubDate>Tue, 16 Feb 2021 10:57:49 GMT</pubDate>
            <atom:updated>2021-03-16T21:25:51.501Z</atom:updated>
            <content:encoded><![CDATA[<p>Flutter is something that always piqued my interest, due to the good things I’ve heard about it, and what people around me muttered: Flutter this, Flutter that, it makes me Flutter.</p><p>So I started to do some experiments with it and write a few dummy Apps in both iOS and Android (same codebase), to see what can be done with it. Since we are already flooded with tons and tons of Apps of any kind, I did not know what exactly to build with it. Until <strong>ONE DAY</strong> (for those who are impatient, you can download the App here <a href="https://apps.apple.com/ch/app/sharebook/id1550247828?l=en"><strong>Apple Store</strong></a><strong> / </strong><a href="https://play.google.com/store/apps/details?id=com.rina.andria.book.share"><strong>Play Store</strong></a>),</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WObuxp7nyB971gYvT-ZYsw.jpeg" /><figcaption>Boîte d’échanges for books in Rolle</figcaption></figure><p>I saw the interesting “<strong>Boîtes d’échanges</strong>” in the city of Geneva — Switzerland (and probably in other Swiss towns/villages) that inspired me. It’s just a GENIUS idea: a way of sharing <strong>whatever</strong> without throwing them away, but reusing.</p><p>So I was thinking this idea could be great for books as an App. Not only the books are not thrown away, nor cluttered, nor just staying on the shelves left in the dust, nor there is the need of printing a new one (for the sake of the <strong>ENVIRONMENT</strong>!!! — I found a reason that is dear to the hearts of many). Other people can benefit/can gain knowledge from those unused, lonely, and abandoned books. It gives the books many lives.</p><p>When we talk about books though, today it is hard to imagine that people won’t ask for money. First because of its value, plus the fact they are (quite) a budget, and we need still to support/to give respect to the writer who was invigorated into putting up for us those wonderful, sometimes unusual, stories. Therefore people will also have the ability to sell their book within this App. It’s still reusing.</p><p>Hence, here is how I envisioned the App:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*-aS6aBqCnz1ctnLkj3FGJw.png" /><figcaption>ShareBook landing page</figcaption></figure><p>It’s a place where you can see and get the books that are available and close to the place you live in. As such, you do not need to open another Maps App (still you can if you want) to check where it is, and how far it is. It’s ALL IN there!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*MFILIqa9iubYf2bh42XU5Q.png" /><figcaption>Book details page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*UtyGA-LmYXbaPsEG2hnh3A.png" /><figcaption>SahreBook search page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*KEl6nbNu8ZO0ik565IAVOQ.png" /><figcaption>City where you can get the book</figcaption></figure><p>Whenever someone around your city shares a book, you will get notified about it (there are few criteria when the notification should be sent to avoid overloading the user with notifications).</p><p>It is possible to directly discuss with the book owner through the App; for instance to get the book details, or the address where to get it, or whatever… You will be notified of every message.</p><p>You must be wondering now, where the hell is he getting those books’ information? It’s simply Google Books API which is one of the best book repositories we have today. From the small experience I have with it, the two things I did not really like with Google books API are the pagination system which is not reliable, and the fact ISBN search is not working sometimes. But apart from that, it is just marvellous how much information and insights can we get from it.</p><p>With the help of Flutter and its package ecosystem, it was enjoyable and fast to write such a simple App: widget composition to build the pages with hot reload mechanism, the flexible design which helps to build a layout like a lego, support and documentation from the Flutter communities, various video tutorials, and the abundance of Dart documentation. As a Frontend developer coming from React ecosystem, what I don’t like with Flutter are:</p><ul><li>the Widget structure tends to be deeply indented very fast and can be hard to understand and maintain. You may split them but then you end up with loads of Widgets</li><li>the common functionalities like search input, input clearing, dropdown, autocomplete, and many others that need to be handled</li></ul><p>That’s all folks! In the <a href="https://rina-andria.medium.com/dart-packages-i-use-for-sharebook-flutter-5c20548cd2ab">next article</a>, I’ll tell you more about the different packages I used in this App and to which functionality I use them for. I thought it can be useful.</p><p>Until then enjoy the <a href="https://apps.apple.com/ch/app/sharebook/id1550247828?l=en"><strong>ShareBook</strong></a> App on <a href="https://apps.apple.com/ch/app/sharebook/id1550247828?l=en">Apple Store</a> and in the <a href="https://play.google.com/store/apps/details?id=com.rina.andria.book.share"><strong>Play Store</strong></a>. Share the books and spread the word to your family and friends!!! Any feedback or ideas are welcome.</p><p>N.B.: No brainer here, it is just a simple App to share books. Flutter made it easy to have (almost) the same codebase for both platforms. By the way, <strong>THANK YOU FLUTTER, I LOVE YOU</strong> :)! Looking forward to the next App ride!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1af861faf886" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>