<?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 Gabriele Cipolloni on Medium]]></title>
        <description><![CDATA[Stories by Gabriele Cipolloni on Medium]]></description>
        <link>https://medium.com/@hyseneim?source=rss-8c255453930e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bJxzSxBbGaOMptX-0D7iiQ.jpeg</url>
            <title>Stories by Gabriele Cipolloni on Medium</title>
            <link>https://medium.com/@hyseneim?source=rss-8c255453930e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:36:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hyseneim/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[Deep dive into Microservices Architecture: Spring Cloud connected to an Authentication &…]]></title>
            <link>https://medium.com/@hyseneim/deep-dive-into-microservices-architecture-spring-cloud-connected-to-an-authentication-43e768faca3c?source=rss-8c255453930e------2</link>
            <guid isPermaLink="false">https://medium.com/p/43e768faca3c</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[spring-cloud]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Gabriele Cipolloni]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 17:56:12 GMT</pubDate>
            <atom:updated>2019-02-05T18:04:05.234Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deep dive into Microservices Architecture: Spring Cloud connected to an Identity Provider</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yt4VR_9uBRUhFVY3Q9dX-A.jpeg" /><figcaption>Three-level representation of an <strong>Identity Provider</strong></figcaption></figure><p>Hello everyone! :)<br>My name is <strong>Gabriele </strong>and I come back after 6 months since the last publication (<a href="https://medium.com/@hyseneim/java-oca-ocp-my-personal-experience-aabd3b8a99ce">https://medium.com/@hyseneim/java-oca-ocp-my-personal-experience-aabd3b8a99ce</a>) to talk about a topic that I’m studying in recent times, that is, <em>drumroll</em>…<strong>Microservices Architectures</strong>.</p><p>In the last few years, this term has been abused exponentially by customers without asking the existential question par excellence:</p><p><strong>What is a microservice architecture and what advantages / disadvantages does it offer?</strong></p><p>It’s easy to draw up a list of benefits like:</p><ul><li>Safety;</li><li>Scalability;</li><li>Self-consistency and independence from each other;</li><li>Precious beautiful X<em>²</em> and…</li></ul><p>I could go on for hours without getting tired, I’m trained 🙂</p><p>All beautiful words that make <strong>fashion </strong>but what’s true behind all this clamor?<br>And above all, if we wanted to integrate an <strong>Identity Provider</strong> what could be a solution?</p><p>To explain it in detail I decided to build a very simple project that demonstrates the power of <strong>Spring Cloud</strong> and the (objective) beauty of an <strong>Authentication &amp; Authorization Provider</strong>, all microservices contained in a dedicated <strong>Docker </strong>container that talk to each other and bootable via <strong>docker-compose</strong> easily.</p><p>First of all, the code of this project can be found here (<strong>first read the README!</strong>):<br><a href="https://github.com/hyseneim/cloud-application-starter">https://github.com/hyseneim/cloud-application-starter</a></p><p>But…<strong><em>don’t you think it’s time to reveal the chosen architecture?</em></strong></p><p>Open the project (clone it from GitHub) with your beautiful <strong>IDE </strong>and follow the “<em>iconic explanation” </em>step by step…or if you are a <strong><em>Pro</em></strong>, start all the components now!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ziZzN1V9z9MQVS3hThUOfA.jpeg" /></figure><p><strong>Macrocategory 1:</strong></p><ul><li><strong>Client</strong>:<br>The subject that forwards the request.<br>It can be a <em>PC</em>, a <em>mobile device</em>, a <em>Smart TV</em>, the limit is the imagination!</li></ul><p><strong>Macrocategory 2:</strong></p><ul><li><strong>Authorization &amp; Authentication Provider (AAP):</strong><br>It exposes the endpoints necessary to request an access token, a refresh token and revoke a token, managing various flows (including the “<strong>password</strong>” flow, using other microservices).<br>He’s always in contact with the <strong>Service Discovery / Registry</strong>, through which he records and discovers the positions of the other microservices.</li><li><strong>Database </strong>(<em>MySQL</em>):<br>The choice of the DB for this application is indifferent (obviously, modifying the <em>Spring connector</em>).<br>The only information stored is related to the <strong>AAP</strong>, namely:<br><em>User tables, roles, access / refresh tokens and client details</em>.</li><li><strong>API Gateway</strong>:<br>Implemented through <strong>Zuul</strong>, it is in “<em>close liaison</em>” with the <strong>Service Discovery / Registry</strong> to obtain information on other microservices to be registered as routes available to the client.<br>Moreover, it acts as <em>load balancer</em> (through <strong>Ribbon</strong>), as well as <em>filter </em>and <em>proxy </em>(through <strong>Hystrix</strong>) of requests.<br>In addition, timeouts related to requests, read times or sockets of all / some microservices are configurable through convenient <em>Hystrix </em>parameters.</li><li><strong>Config Server</strong>:<br>It contains the configurations of all the microservices in play that can come from different sources.<br>Outside the <em>Docker </em>container, it typically uses the <strong>filesystem </strong>or <strong>Git </strong>as sources of truth.<br>Inside the container, however, uses the <strong>classpath </strong>of it JAR, with the foresight to change the references of the other microservices with their logical name (specified through <strong>docker-compose.yml</strong>).<br>Obviously, the latter method is not recommended when you have a “<em>cluster</em>” of <em>Config Servers</em>.<br><strong>PS: In the latter case, the blue-green pattern might help you when replacing configurations</strong>.</li><li><strong>Service Discovery / Registry Server</strong>:<br>Widely mentioned above, it allows the discovery and registration of microservices.<br><strong>Feign </strong>is particularly useful, a tool through which you can also request other microservices using the register containing all the recordings.</li><li><strong>Microservice 1:</strong><br>Sample microservice containing only a <em>Hello World</em> endpoint protected by all non-administrator users, retrieving user and role by submitting a request to the <em>AAP (</em>through <em>Feign)</em>.</li></ul><p>This architecture can be a concrete basis for your personal or business project.<br>I am available through <strong>Linkedin </strong>for any clarifications / additions or information on this or other projects:</p><p><a href="https://www.linkedin.com/in/gabriele-cipolloni">https://www.linkedin.com/in/gabriele-cipolloni</a></p><p><strong><em>Gabriele</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43e768faca3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java OCAJP7/OCPJP7: My personal experience]]></title>
            <link>https://medium.com/@hyseneim/java-oca-ocp-my-personal-experience-aabd3b8a99ce?source=rss-8c255453930e------2</link>
            <guid isPermaLink="false">https://medium.com/p/aabd3b8a99ce</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[exam]]></category>
            <dc:creator><![CDATA[Gabriele Cipolloni]]></dc:creator>
            <pubDate>Tue, 24 Jul 2018 13:30:15 GMT</pubDate>
            <atom:updated>2018-07-24T15:47:00.260Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*Y_YHJ9ClLFHwSbqoYqFXuw.png" /><figcaption>Java certification path</figcaption></figure><p>It’s been almost a year since my last story but I want to share with you a recent personal satisfaction.</p><p>A less technical and more discursive story.</p><p>But first, I want to make a premise.</p><p>A few years ago I discovered that this certification exists:</p><p><a href="https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&amp;get_params=p_exam_id:1Z0-807">https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&amp;get_params=p_exam_id:1Z0-807</a></p><p>Fascinated by taking a path that is not easy (under all points of view) and full of pitfalls, I still decide to face this challenge starting from the basics.</p><p>The first certification to which I pointed was the first block of Java SE, also called <strong>OCAJP7</strong>.</p><p>… Drum roll, I got it in <strong>April 2016</strong>.</p><p>Considering that I had not seen Java for at least three months because I was working for a marketing company that mainly used PHP, I thought it was an excellent result.</p><p>I decided to continue the path and aim straight towards the <strong>OCPJP7</strong>.</p><p>To make you more involved, imagine being in my dream right now, where a boy from high school has the goal of becoming a <strong>JavaEE Architect (OCMJEA7)</strong>, one day not too far away.</p><p>I immediately buy this book on Amazon:</p><p><a href="https://www.amazon.it/OCP-Java-Programmer-Certification-Guide/dp/161729148X/ref=sr_1_5?ie=UTF8&amp;qid=1532435068&amp;sr=8-5&amp;keywords=java+7+ocp">https://www.amazon.it/OCP-Java-Programmer-Certification-Guide/dp/161729148X/ref=sr_1_5?ie=UTF8&amp;qid=1532435068&amp;sr=8-5&amp;keywords=java+7+ocp</a></p><p>It was a good purchase, it is really well done.</p><p>It contains a summary of each chapter, many exercises and a test at the end of every chapter/book.</p><p>Pressed by the work, I decide to study it the weekend, sifting through in all its aspects, trying the exercises myself on the pc and reciting aloud every single syllable.</p><p>Almost following a <strong>mystic path</strong> rather than a <strong>certification path</strong>, I decide to download some applications for Android that allow me to do tests in my free time, knowing that many questions have wrong or incomplete solutions.</p><p>Every day that passes, I feel my sense of belonging to the topics dealt with, having the humility to remind me that the exam would contain questions I would not be able to answer.</p><p>The days followed each other incessantly and I arrived on the fateful day, when, sitting in front of the video terminal, stuck by the cameras and with an “external presence” outside the room door, proceed to click the “Start the test” button and it all started (of new).</p><p>It was <strong>19 July 2018</strong>, I passed the exam.</p><p>Important: From here on, imagine that you passed the exam and read the next lines full of pride so that nothing can affect you.</p><p>I noticed one thing, however, that some subtleties on concurrency argument had not been dealt with in depth in the book or had escaped me (in particular the intensive use of <strong>RecursiveTask </strong>and <strong>RecursiveAction </strong>being part of the <strong>Fork / Join framework</strong>).</p><p>That said I do not want to bore you too much for now because, I promise you, I will do it in the next few stories.</p><p>The advice I can give you are:</p><p>1) First of all, if you can buy the book mentioned, net of some inaccuracies is excellent;</p><p>2) Do the exam tests intensively but do not do the killer test, it is useless to buy the answers because when you are faced with a problem you will not remember the solution because you have memorized it;</p><p>3) Have a good quantity of luck, that is, hope you get a whole load of questions. According to an estimate that I made, thirty (30) are simple, twenty-five (25) of medium difficulty and ten (10) complex, but this varies a lot from person to person and from the point of view.</p><p>Above all, do not give up! Do not be distracted by the other employees of the company or the test center where you take the exam.</p><p>Getting distracted and getting discouraged is very easy in the face of challenging questions.</p><p>I’m thinking of continuing my journey with this exam:</p><p><a href="https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&amp;get_params=p_exam_id:1Z0-900">https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&amp;get_params=p_exam_id:1Z0-900</a></p><p>It seems excellent and consistent with the path made up to now.</p><p>It contains questions on several components of <strong>JavaEE</strong>, like <strong>EJB, JPA</strong>, <strong>JMS</strong>, <strong>JAX-RS</strong>, <strong>JAX-WS</strong> and others listed under the “exam topics”.</p><p>What do you think about this experience? Do you have one to tell me?</p><p>When answering, always keep my final goal in mind :)</p><p>A greeting</p><p>Gabriele</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aabd3b8a99ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create your first Angular4 + Firebase + Travis CI application!]]></title>
            <link>https://medium.com/@hyseneim/create-your-first-angular4-firebase-travis-ci-application-e29bf64fc4e1?source=rss-8c255453930e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e29bf64fc4e1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[travis-ci]]></category>
            <category><![CDATA[angular-4]]></category>
            <dc:creator><![CDATA[Gabriele Cipolloni]]></dc:creator>
            <pubDate>Fri, 08 Sep 2017 10:16:39 GMT</pubDate>
            <atom:updated>2017-09-08T10:30:33.269Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*fHxDoQKr2B-u61W-laHPew.jpeg" /><figcaption>Angular4 + Firebase + Travis CI</figcaption></figure><p>Hello everybody, my name is Gabriele and I am an Italian Web Developer. <br>I live in Rome and today I’d like to talk about a modern and interesting Javascript framework which is Angular.<br>A few months ago, I started to study <strong>Angular</strong>, mostly version <strong>2</strong> and <strong>4</strong>, for personal and work projects, and with great surprise I found myself in front of a complete framework that gives us a remarkable reduction development times.<br>The adoption of <strong>Microsoft Typescript</strong> (compared to the native <strong>Javascript) </strong>introduces the <strong>concept of type</strong> and allows the same source to <strong>transcompilation </strong>in multiple version, like <strong>ES6</strong>, <strong>ES5 </strong>or others.</p><p>Thanks to the official <strong>Angular CLI</strong>, you can create well-structured, scalable, and embeddable projects with other <strong>Google </strong>products (one is <strong>Firebase</strong>) as I’ll show you soon.<br>Here you can find the repository of the project:<br><a href="https://github.com/hyseneim/angular4-starter"><strong>https://github.com/hyseneim/angular4-starter</strong></a></p><p>First, let’s set up the project by installing <strong>Node.js</strong> (and official package manager named “<strong>npm</strong>”) from the official site:<br><a href="https://nodejs.org/it/"><strong>https://nodejs.org/it/</strong></a></p><p>Given this (and related steps), we globally install Angular CLI (at this time <strong>v1.3.2</strong>) with:</p><pre><strong>npm install -g @angular/cli@latest</strong></pre><p>This command will install the CLI globally and make the “<strong>ng</strong>” command available.<br>In your workspace type:</p><pre><strong>ng new angular4-starter</strong></pre><p>Following this steps, you will get a project named “<strong>angular4-starter</strong>” and the standard seed of Angular will be cloned with a set of default settings.<br>During setup, we can specify custom settings.<br>For a complete list of all possible parameters for “<strong>new</strong>” command you can refer to:<br><a href="https://github.com/angular/angular-cli/blob/master/docs/documentation/new.md"><strong>https://github.com/angular/angular-cli/blob/master/docs/documentation/new.md</strong></a></p><p>Once the command is executed, our first project will be automatically generated and installed trough “<strong>npm install</strong>” command.<br>We are ready to start it!<br>Go into project folder and type on the command line:</p><pre><strong>npm start</strong></pre><p>Now you can admire potential of this “<em>simple</em>” seed…<br>Hey, it’s time to integrate <strong>Google Firebase</strong> through a Google Account! :)</p><p>First, you must globally install the <strong>Firebase CLI</strong> with:</p><pre><strong>npm install -g firebase-tools</strong></pre><p>Below, you must run this command:</p><pre><strong>firebase login</strong></pre><p>This command will open a window in the default browser where we can log into our <strong>Google Account</strong> and then going back to the console window type:</p><pre><strong>firebase init</strong></pre><p>This will initialize a configuration JSON file, on the console we will choose the “<strong>hosting</strong>” and “<strong>database</strong>” parameters.<br>We want to link public directory” to “dist” and rewrite all requests to index.html, this allow Angular’s routing strategy to use <strong>HTML5 History API </strong>strategy (es. /about-us) and not <strong>hashing-strategy</strong> (es. #/about-us)</p><p>No we will add two lines to the bottom “scripts” object in the <strong>package.json</strong> file of the project:</p><pre><strong> “build:prod”: “ng build --prod”,<br> “firebase:deploy”: “firebase deploy --token $FIREBASE_TOKEN”</strong></pre><p>We may notice that a “<strong>firebase.json</strong>” file was created on the project root with the selected configurations (this file is crucial for the next application deployment).<br>Once Firebase is successfully connected to the project, we run:</p><pre><strong>firebase login:ci</strong></pre><p>In order to get a valid user token for deployments via continuous integration</p><p>At the end of the process, create a “<strong>.travis.yml</strong>” file in the project root with the following source:</p><pre><strong>language: node_js<br>node_js:<br> — “stable”</strong></pre><pre><strong>cache:<br> paths:<br> — node_modules/</strong></pre><pre><strong>before_script:<br> — npm install<br> — npm install -g firebase-tools</strong></pre><pre><strong>script:<br> — npm run build:prod<br> — npm run firebase:deploy</strong></pre><pre><strong>branches:<br> only:<br> — master</strong></pre><p>Now, we commit &amp; push our project on GitHub of which Travis CI is a partner.</p><p>At this point, let’s go on:<br><a href="https://travis-ci.org/"><strong>https://travis-ci.org/</strong></a></p><p>When you log in, add your project to the list of repositories that you will need to perform tasks.<br>By going to the individual repository settings, add an environment variable called “<strong>FIREBASE_TOKEN</strong>” with the token that was previously generated by “<strong>firebase login:ci</strong>”.<br>By triggering a build from <strong>Travis CI</strong> or commit &amp; push to <strong>GitHub</strong>, the project’s build project will be activated for automatic production and deployment on Firebase hosting, making our “<em>simple</em>” project accessible to the public!</p><p><strong>Enjoy :)</strong></p><p>Thanks for<strong> </strong>the attention<strong>,<br></strong>Gabriele</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e29bf64fc4e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>