<?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 Cong Tuan Le on Medium]]></title>
        <description><![CDATA[Stories by Cong Tuan Le on Medium]]></description>
        <link>https://medium.com/@congtuanle?source=rss-a34bab9701e4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dS9p6IWinZp0aLn7OAJpQA.jpeg</url>
            <title>Stories by Cong Tuan Le on Medium</title>
            <link>https://medium.com/@congtuanle?source=rss-a34bab9701e4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:23:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@congtuanle/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[IAM Roles — GCP vs AWS]]></title>
            <link>https://congtuanle.medium.com/iam-roles-gcp-vs-aws-4457511bf4a7?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4457511bf4a7</guid>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Sat, 30 Mar 2024 05:21:55 GMT</pubDate>
            <atom:updated>2024-03-30T05:21:55.912Z</atom:updated>
            <content:encoded><![CDATA[<h3>IAM Roles — GCP vs AWS</h3><p>Both GCP and AWS incorporate the concept of the IAM Role; however, they define the term differently. Let&#39;s delve into their respective definitions.</p><p><a href="https://cloud.google.com/iam/docs/overview"><strong>GCP definition</strong></a></p><blockquote><em>A role is a collection of permissions. Permissions determine what operations are allowed on a resource. When you grant a role to a principal, you grant all the permissions that the role contains.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*IYJ9Qu4lvRJwAnVCOSNLEw.png" /></figure><p>It means that Roles<strong>do not</strong> know about principals (aka end users, service accounts, etc)</p><p>To assign (or bind) one or multiple principals to individual roles, we need to use allow policy</p><p><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html"><strong>AWS definition</strong></a></p><blockquote><em>An IAM role is an IAM identity that you can create in your account that has specific permissions. An IAM role is similar to an IAM user, in that it is an AWS identity with permission policies that determine what the identity can and cannot do in AWS. However, instead of being uniquely associated with one person, a role is intended to be assumable by anyone who needs it</em></blockquote><p>In AWS, on the other way around, IAM roles similar to IAM identity. However, there is a concept that is similar to GCP&#39;s role:</p><blockquote><em>IAM policies define permissions for an action regardless of the method that you use to perform the operation.</em></blockquote><p>And we can manage access in AWS by creating policies and attaching them to IAM identities</p><p>To conclude, for newcomers transitioning between GCP and AWS, it is important to tread carefully due to the potential confusion that may arise from variances in IAM role concepts.</p><p>References</p><ul><li><a href="https://cloud.google.com/iam/docs/overview">https://cloud.google.com/iam/docs/overview</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html">https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4457511bf4a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Inbox & Outbox Patterns for Better Efficiency]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://congtuanle.medium.com/using-inbox-outbox-patterns-for-better-efficiency-462e21118ed3?source=rss-a34bab9701e4------2"><img src="https://cdn-images-1.medium.com/max/2600/0*RZsS0PTmz4GDsjPv" width="4608"></a></p><p class="medium-feed-snippet">It is imperative to maintain data integrity, consistency, and reliability when working with the Billing service. Any missing or redundant&#x2026;</p><p class="medium-feed-link"><a href="https://congtuanle.medium.com/using-inbox-outbox-patterns-for-better-efficiency-462e21118ed3?source=rss-a34bab9701e4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://congtuanle.medium.com/using-inbox-outbox-patterns-for-better-efficiency-462e21118ed3?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/462e21118ed3</guid>
            <category><![CDATA[billing-domain]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 04:15:40 GMT</pubDate>
            <atom:updated>2024-03-24T04:15:40.038Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Making the code review process enjoyable]]></title>
            <link>https://congtuanle.medium.com/making-the-code-review-process-enjoyable-4b8ad88a5cc4?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b8ad88a5cc4</guid>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 04:00:37 GMT</pubDate>
            <atom:updated>2024-03-24T07:01:03.189Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*Nld3Qhx-lXSFEbqsfsmLgw.png" /><figcaption><a href="https://github.com/tuanlc">https://github.com/tuanlc</a></figcaption></figure><h3>Keys takeaway</h3><ul><li>Doing coding reviews is one of the fastest ways of spreading knowledge among team members</li><li>Bring an open mind to learning and sharing to build a good culture in your team, making the code review process enjoyable for both reviewers and reviewees.</li><li>Address problems rather than take them personally</li><li>Answer questions Why? What? and When? before looking at How?</li><li>Always be prepared to express gratitude or offer praise when you gain new insights or come across exemplary work.</li></ul><h3>What probably went wrong?</h3><p>When you do a code review, what do you expect? Are they:</p><ul><li>Find bugs</li><li>Spot violation of coding conventions</li><li>Optimize performance</li><li>Shortest lines of code</li><li>Making code reusable</li></ul><p>Yeah, they are good expectations but they aren’t sufficient. Sometimes, they end up with endless debate without a clear outcome of the pull requests and the feedback.</p><p>Have you fallen into a debate about using the proper method for iteration? Trying to optimize the time complexity from O(n*m) to O(n) without caring about the fact that there are just a few items in the iterating array.</p><p>Have you tried to correct business logic and test for a pull request? And after that, you figured out that there was a better approach and threw everything you had done before. That not only throws your work but also costs the company money.</p><p>There are many examples like that, it is not because we do it wrong, it’s about our philosophy and our expectation when reviewing code is not appropriate.</p><h3>A better approach</h3><blockquote><em>It is a narrow mind which cannot look at a subject from various points of view.</em></blockquote><blockquote>— George Eliot, Middlemarch —</blockquote><p>Let’s adjust the expectations:</p><ul><li>Every solution should bring real value to the users and revenue to the company</li><li>The main objective of doing a code review is not about finding bugs, it’s about sharing knowledge</li></ul><p>Keeping the expectations in mind you will end up with a better approach and steps when reviewing code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jT8MK3dRRun0UHKSj_GPUw.png" /><figcaption>Code review process</figcaption></figure><h3>Context is the most important</h3><p>Before going to look at the pull request, you need to answer or have answers to the following questions:</p><ul><li>What is the pull request trying to solve?</li><li>Is the problem problem at all? Is this urgent?</li><li>Why does the pull request go that way?</li><li>Is there any alternative solution?</li></ul><p>Take a look at the ticket or any related documentation to understand the context of the problem that the pull request is trying to solve. Sometimes, you can have better suggestions without looking at the pull request.</p><p>For example, the team is trying to implement an in-house job queue solution. With the context, and based on the team resources, the better approach could be using a 3rd party solution for the queue.</p><p>Or even better, sometimes, the solving problem is not a problem at all. Challenging requirements from products and users is essential, it helps us to clarify the reasons, sometimes, we can propose another approach or replace the problem with a smaller problem.</p><h3>It’s a not good signal if there is only one solution</h3><blockquote>There is no perfect solution, only trade-offs and good enough solutions</blockquote><blockquote>_Someone in the world_</blockquote><p>Every solution should come from the actual user value and the company revenue. If they don’t, then ignore them as soon as possible.</p><p>When defining a solution, many factors impact the final decision:</p><ul><li>Delivery time</li><li>Budget</li><li>Resources (size of the team, strength of the team, etc.)</li><li>Technologies</li><li>Technical debts</li><li>etc</li></ul><p>Architecture decision records are awesome documentation for any important decisions. Then in the future, we always understand the context when the decisions were made.</p><p>Therefore, looking at solutions, their trade-offs and the final decision should be done before looking at the pull request is highly recommended.</p><p>Additionally, don’t hesitate to pose goofy questions or challenge the solutions. It is a good practice to build a nice culture company, and sometimes, it contributes to improving or changing the solutions.</p><h3>Having the overview of the actual result (Design)</h3><p>To give good feedback or learn from pull requests, you need to know what the result looks like. For example:</p><ul><li>If a pull request is implementing a new API, let’s look at the API design including methods, routes, request body, response body, authentication, authorization, etc. You should probably give good feedback on the change and the whole remaining pull request will be adjusted accordingly.</li><li>If a pull request is implementing a front-end view, take a look at the UI design, you might have in your head about the components, existing icons, code structure, etc. They are useful when you review the implementation.</li><li>If a pull request is introducing a new database table, then the database schema is important to see the relationships and columns. You might find a glitch in the design or a missing relationship to another entity that you worked on.</li><li>If a pull request is producing a new entity, does the new entity belong to the correct domains and boundaries?</li></ul><p>Therefore, having the overview of the actual result gives you clues on how things will be implemented, sometimes, saving time for you and reviewers by giving feedback for design before implementation.</p><h3>Business logic is the core fundamental of a system</h3><p>The next important thing to focus on is the business logic in pull requests. Business logic is about the domain knowledge and the relationship among entities. They are the core fundamentals of a software system. Ensure to have the same page from both reviewers and reviewees making follow-up feedback and discussions short and focused. Otherwise, people misunderstand each other and say different things, then costs time and energy.</p><p>Good feedback on the business logic could lead to a change in the implementation and then a change in corresponding tests. Having a clear business logic defines use cases when writing tests. Let’s take a look at the following example:</p><ul><li>The business logic of education software does not allow a student to see the scores of all his classmates. Then in the pull request, if the rule is not guaranteed, it is a red signal and should be fixed before going to check tests.</li></ul><h3>Testing</h3><p>Tests are inevitable for any software development team. Tests make us confident about any change, new releases, etc. Therefore, writing good and correct tests is important and required. Depending on the design and the business logic of the pull request, it requires the proper kinds of tests and test cases.</p><p>When looking at tests, one of the right approaches is collecting the test cases without looking at the tests’ details. This helps us to see if a pull request has covered enough business logic, edge cases, and good types of tests. For example:</p><ul><li>If the pull request is building a new API, integration tests are essential to challenge authentication, authorization, business logic and the response format</li><li>If the pull request is changing business logic, unit tests are essential to ensure the change and edge cases.</li></ul><h3>Coding convention</h3><p>In each team or project, there are conventions of naming, coding, structuring, patterns, etc. It’s style guidelines for programming, and it mitigates the endless debate among team members about good practices 😉</p><p>Correct coding convention or understanding the convention is important to ensure the team is on the same page and totally focused on development.</p><h3>Coding optimization</h3><p>Yes, this should be the last part of the reviewing process. Once the implementation is reasonable, coding optimization is the thing that we could take a look at. Common optimization are:</p><ul><li>Space complexity</li><li>Time complexity</li><li>Reusable code</li></ul><p>However, we should take this part with care. You might end up with premature optimization. Let’s take a look at the following questions:</p><ul><li>Is optimization measurable?</li><li>Is real-life data big enough to see the difference in the optimization?</li><li>Is code used in multiple places? Is it straightforward to make it reusable?</li></ul><p>Optimization by itself requires the improvement of the performance, resources and developer experience. If there is minimal or unclear benefit, then there’s no justification for undertaking it.</p><h3>Is that all?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*82zLDuCFTnWNEBAy.png" /></figure><p>Reviewing code is not only finding bugs. Always be prepared to express gratitude or offer praise when you gain new insights or come across exemplary work.</p><h3>Conclusion</h3><p>The process looks verbose, isn’t it? Yes and no, if you build a good practice and you have some experience with the system, you can do it conveniently. I’ve applied this process every day and believe me, it won’t take you an hour a day.</p><p>Lastly, folks, as software engineers, just writing code isn’t the only thing that shows our value, especially now that AI is getting better at it. We’ve got to beef up our game with skills like better communication, working well with others, and being open to new ideas. It’s all about adapting to this changing world of software development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b8ad88a5cc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoError: E11000 duplicate key error collection ??]]></title>
            <link>https://congtuanle.medium.com/mongoerror-e11000-duplicate-key-error-collection-695e7e9ccdc4?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/695e7e9ccdc4</guid>
            <category><![CDATA[mongoose]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[wfhcovid19]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[experience-learning]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Fri, 30 Jul 2021 04:29:05 GMT</pubDate>
            <atom:updated>2021-07-30T07:59:02.358Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>MongoError: E11000 duplicate key error collection ??</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*EzZrCZYCeWLJI27_5MopZQ.png" /></figure><p><strong>TL;DR</strong></p><blockquote><em>I’ve encountered the issue sometime in my developer path. So I decided to write down my experience and to firstly note to myself and secondly to help other developers/engineers who are a newbie in this topic.</em></blockquote><blockquote><em>If you only need the fix, you can skip to the last part of this article!</em></blockquote><p>One of the most advantages of using NoSQL databases is the flexible feature that allows us to update the number of fields and their data types any time we want.</p><p>I’m using Nodejs and Mongoose driver to connect to MongoDB. And in the very beginning phase of a project development life and this helps us to able to update collections and their fields.</p><p>However, I encountered an error.</p><blockquote>MongoError: E11000 duplicate key error collection: companies index: code_1 dup key: { code: null }</blockquote><p>What happened here?</p><p>To understand, I would go further a bit with Indexing and unique keys in Databases.</p><h4><strong>Database Indexes</strong></h4><p><a href="https://en.wikipedia.org/wiki/Database_index">Wikipedia</a> defines:</p><blockquote><em>A database index is a data structure that improves the speed of data retrieval operations on a database table at the cost of additional writes and storage space to maintain the index data structure. Indexes are used to quickly locate data without </em>having to search every row in a database table every time a database table is accessed. Indexes can be created using one or more columns of a database table, providing the basis for both rapid random lookups and efficient access of ordered records.</blockquote><p>If you want to query a field or set of fields without iterating all the entries in a table/collection, you can create indexes for these fields.</p><p>To understand more how indexes are created &amp; organized to support efficient queries, you can check at <a href="https://en.wikipedia.org/wiki/Database_index">this</a></p><p>However, the cost for indexes is not cheap, especially in the world of big data nowadays. Because to make queries on indexed fields efficient, these indexes need to be stored in a fast query memory (for example RAM). So, be careful when you want to add an index for a field, some factors should be put on the table to have good enough decisions: are data queried frequently? the user behaviors? regions that data are stored? etc</p><p>And last but not least, an indexed field may be a non-unique value for each entry in the column. For example, you can have an index on the field “Region” where we can have multiple users in the same region.</p><h4><strong>Unique keys</strong></h4><p>In the real-life, there are use cases that we want to limit the appearance of one or a set of values of factors. For example, you want there is only 1 email that is used to register per user, no more.</p><p>So, unique keys help you to achieve this constrain by defining the rule in the schema. For example in mongoose:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c525b3c4f16ccc7055c5070bcdb2d37/href">https://medium.com/media/2c525b3c4f16ccc7055c5070bcdb2d37/href</a></iframe><p>You can see that the email attribute is unique. With this, you cannot add more than one user with the same email. If developers violate the rule, Mongodb will throw errors. This helps us preventing developer mistakes.</p><p>Again, you can check more at <a href="https://en.wikipedia.org/wiki/Unique_key">Wikipedia</a></p><h4><strong>When Mongo DB schema become out of date with Mongoose schema</strong></h4><p>Come back to the beginning error, let’s me show you the mongoose schema that was defined by code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee27e6925757bd1f111f18df733eb83b/href">https://medium.com/media/ee27e6925757bd1f111f18df733eb83b/href</a></iframe><p>Look good! right?</p><p>But what makes the error?</p><blockquote>MongoError: E11000 duplicate key error collection: companies index: code_1 dup key: { code: null }</blockquote><p>Let’s check a bit:</p><p>I used mongo client by querying with the command line to check the existing keys for the `companies` collection. And the result was:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/990c2232dec85944a747b2a23797fcb8/href">https://medium.com/media/990c2232dec85944a747b2a23797fcb8/href</a></iframe><p>Yeah! There is an established index field for `code` and it is set to unique. And once an index is set, it is there until you remove it, and the rule unique is still there also.</p><p>And the reason is the schema was modified due to the product business has changed. The previous schema was:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aacbe7be9bed9c75bb4227a10c9860fa/href">https://medium.com/media/aacbe7be9bed9c75bb4227a10c9860fa/href</a></iframe><p>So, this is a case when the Mongo schema becomes out date with the Mongoose schema that you defined in code.</p><p>To fix this, I need to remove manually the unnecessary index key. Mongo query provides some methods to remove indexes manually:</p><p><strong>**</strong><em>*Note: You cannot drop the default index on the _id field.*</em><strong>**</strong></p><p>1. <a href="https://docs.mongodb.com/manual/reference/method/db.collection.dropIndex/">db.collection.dropIndex()</a></p><blockquote>db.companies.dropIndex(“code_1”)</blockquote><p>2. <a href="https://docs.mongodb.com/manual/reference/command/dropIndexes/#dropindexes">db.collection.dropIndexes</a></p><p>This method will drop all non-_id indexes</p><blockquote>db.companies.dropIndexes()</blockquote><p>You can verify again by using the command line:</p><blockquote><em>db.companies.getIndexes()</em></blockquote><p>And it works!</p><p>Your comments &amp; discussion are warmly welcomed!</p><p>Enjoy your job!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=695e7e9ccdc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GraphQL + Clean Architecture boilerplate]]></title>
            <link>https://congtuanle.medium.com/graphql-clean-architectire-boilerplate-1beb07935b41?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1beb07935b41</guid>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[boilerplate-code]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Sat, 03 Jul 2021 14:24:21 GMT</pubDate>
            <atom:updated>2021-07-03T14:37:02.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhBXcS0fb7zkkVvfOAgiUQ.png" /></figure><h3><strong>Inspiration</strong></h3><p>The <a href="https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html">Clean Architecture</a> is an awesome guide for developers who desire to build clean, structured, and maintainable projects. The letter L in the SOLID principle allows us to make dependent components are easily replaced without touch to the business and the core of systems. For an example of the web server where there are many frameworks out there (Expressjs, GraphQL, etc) and the chosen decision depends on the purpose of the business and the context.</p><p>In this boilerplate guide scope, we will go through how to make the core business immune to the change of the detailed technologies. Let’s go!</p><p>You can find the implementation detail in this <a href="https://github.com/tuanlc/graphql_clean-architecture_boilerplate">repository</a></p><h3><strong>Boilerplate</strong></h3><h4><strong>Code structure</strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2436b689d06fc270767acb7843ebd3c8/href">https://medium.com/media/2436b689d06fc270767acb7843ebd3c8/href</a></iframe><p>The main folder is `src` where contains the implementation:</p><p>- <strong>**application**</strong>: Application layer where we can use a backend web application framework. In this boilerplate is `GraphQL`</p><p>- <strong>**service**</strong>: The business service layer where we defined the logic to handle application use cases. This layer also contains adapters that abstract the detailed actions, for example, access to the database.</p><p>- <strong>**entities**</strong>: This is the core component of the application where we define the application entities.</p><p>- <strong>**persistence**</strong>: This is another detailed layer where we specify actions to communicate to the database, message queue, etc.</p><p>- <strong>**dto**</strong>: (stand for Data Transfer Object) defines communication contracts between layers. For example, what type of input params or return value that is used in methods of layers</p><p>- <strong>**IoC**</strong>: (stand for Inversion of Control) is an implementation of the Dependency Injection, the letter D in the SOLID principal. Every time you create a new Service class, or a new repository class, or a new controller, you need to register them in this container. This boilerplate uses <a href="https://github.com/jeffijoe/awilix">Awilix</a> library to achieve the factor.</p><h4><strong>Communication Policies</strong></h4><p>The communication policies between layers and domains compliant with the Clean Architecture. The directions of arrows in the following diagrams show the relationship between components. For example, if an arrow direction from component X to component Y, it means component X depends on component Y.</p><ol><li><strong>Dependency diagram</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*vCl1ZMnV6ccm4PZ46ypSKA.png" /><figcaption>Dependency diagram</figcaption></figure><p>As you can see in the diagram the dependency flow among layers:</p><p>- Entity is the core layer and does not depend on any component</p><p>- To inverse the dependency from the domain business layer to the repository layer, there is a repository interface in the domain business. This allows us to be able to implement and update this layer with the detailed technologies</p><p>- Application Controller depends on the services</p><p>- IoC container depends on services, repositories, and application controllers because we need to register all of them to the container</p><p>- Application router depends on the IoC container that allows us to use registered application controllers to handle client requests</p><p><strong>2. Dependency between domains</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*zAypcmYxZA3C1vgACeIpwQ.png" /><figcaption>Dependency between domains diagram</figcaption></figure><p>In real-life projects, of course, there is not merely 1 domain. So, we need to define the communication rules between layers of them.</p><h3><strong>Getting Started</strong></h3><p>There are some beginning available command lines is defined the `scripts` part of the `package.json` file.</p><p>1. Install dependencies</p><blockquote>npm i</blockquote><p>2. Run the application under the `dev` mode with the hot reload feature</p><blockquote>npm run dev</blockquote><p>3. Compile the application</p><blockquote>npm run build</blockquote><p>4. Run the application under the `production` mode. You need to compile the application before</p><blockquote>npm run start</blockquote><p>5. Generate types for GraphQL schema. This action must be done each time you update the GraphQL schema to allow the typescript compiler to understand your schema:</p><blockquote>npm run generate-typedefs</blockquote><h3><strong>References</strong></h3><ul><li><a href="https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html">The Clean Architecture Blog</a></li><li><a href="https://anthonyriera.medium.com/you-just-found-the-best-node-typescript-mongodb-graphql-api-starter-kit-1f6f53d841cb">Node + Typescript + MongoDB GraphQL API Starter Kit</a></li><li><a href="https://github.com/tuanlc/graphql_clean-architecture_boilerplate">Implementation repository</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1beb07935b41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Typescript: Are “Private” properties private?]]></title>
            <link>https://congtuanle.medium.com/typescript-are-private-properties-private-c9558f04f571?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9558f04f571</guid>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Sat, 19 Dec 2020 15:05:10 GMT</pubDate>
            <atom:updated>2020-12-20T00:24:27.580Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D3ZNtbFaZTqyo4JP_S16_Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@wesleyphotography?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Wesley Tingey</a> on <a href="https://unsplash.com/s/photos/private?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>If you are reading this article, I guess you are interested in the <a href="https://www.typescriptlang.org/">Typescript</a> language. Either you are a newbie or an experienced developer in Typescript language, I bet you use the conceptprivate for class properties many times. But do you know that it is not private at all. Let’s discover together.</p><p>Take a look at an example where I have a <strong><em>Student </em></strong>class:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf3ebae098c6513875d7dee9a601fe9d/href">https://medium.com/media/cf3ebae098c6513875d7dee9a601fe9d/href</a></iframe><p>As you can see there are two private properties in the class: attribute phone and method playGame() and we expect that the outside of the class cannot call these properties. And yes, the Typescript compiler guarantees the rule for us.</p><p>In the index.js I import the class and I try to violate the rule:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/78d1df468b4ebdac9fbff22c6c2e01fd/href">https://medium.com/media/78d1df468b4ebdac9fbff22c6c2e01fd/href</a></iframe><p>With the modern IDEs and useful plugins, developers can be alerted if they do like this. How luckily we are, right!</p><p>But, even you use a simple text editor to write these lines of code. The Typescript compiler will throw errors when building:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa97557d66ac9045b3ca799b8f992ea5/href">https://medium.com/media/fa97557d66ac9045b3ca799b8f992ea5/href</a></iframe><p>You can see the error messages. So, are we safe? The answer is <strong>NOT YET</strong>. Unfortunately, Typescript only alerts us during compile time, after that, the compiled result is javascript where these private properties will be fully accessible and visible. Let see how:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e1c9a924cea674e523ff44bc72ee6d5/href">https://medium.com/media/8e1c9a924cea674e523ff44bc72ee6d5/href</a></iframe><p>So, I can violate the rule by cast the Student instance as any and this is the compiled result:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3b096a4ca946db2b887a603be197009b/href">https://medium.com/media/3b096a4ca946db2b887a603be197009b/href</a></iframe><p>Then, in runtime, it works. Of course, use any is a bad practice or even a mistake. My point here is to prove that we can call private properties in runtime from outside of the class as we have known about Javascript.</p><p><strong>But you can have real</strong><strong>private properties</strong></p><p>With <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields">private lass fields</a>. We can easily achieve real private properties. There is however <a href="https://github.com/tc39/proposal-private-methods">a stage 3 proposal</a> to allow defining private class fields using a hash # prefix. I will modify the classStudent as below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88cc385413345c3f62b181e94f9438b7/href">https://medium.com/media/88cc385413345c3f62b181e94f9438b7/href</a></iframe><p>You can see now, the attribute phone is changed to #phone and the methodplayGame() is changed to #playGame. I keep the same main file with the trick student as any and you can see the result when compiling the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b8c0a229ca03810d25c36bab3ba343fd/href">https://medium.com/media/b8c0a229ca03810d25c36bab3ba343fd/href</a></iframe><p>The compiler throws an error and the compiling process is exited at the first line of code that the rule is violated. We can see it is more restricted than before where it throws errors for all of the violated lines of code.</p><p>You can check more examples in <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields">private class fields </a>documentation.</p><p>That’s it! I hope you have found a cool knowledge of Typescript. If you have other opinions, please let me know by leaving the comment below.</p><p>Keep calm and enjoy programming!</p><p>If you like the post, you can buy me a Coffee at <a href="https://ko-fi.com/tlcong">https://ko-fi.com/tlcong</a>.</p><p><strong>Reference:</strong></p><ul><li><a href="https://www.typescriptlang.org/">https://www.typescriptlang.org/</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9558f04f571" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things that I’ve learned after 3months as the technical leader of a project]]></title>
            <link>https://congtuanle.medium.com/things-that-ive-learned-after-3months-as-the-technical-leader-of-a-project-ad4d8624dd8a?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad4d8624dd8a</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[technical-leader]]></category>
            <category><![CDATA[sharing]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Fri, 18 Dec 2020 16:25:18 GMT</pubDate>
            <atom:updated>2020-12-19T07:02:03.378Z</atom:updated>
            <content:encoded><![CDATA[<h3>Things that I’ve learned after 3 months as the technical leader of a project</h3><p><em>Enjoy the journey while going to your destinations</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUYHuTG4gxqoBgYIw1zdmA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@priscilladupreez?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Priscilla Du Preez</a> on <a href="https://unsplash.com/s/photos/learn?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>3 months ago, I have taken the role of Technical Leader of a new and important project for my company. This is the first time for me and I very appreciate the journey that I have had with my team as well as with the product, even it just the beginning of the road. And today, we had the first demonstration of a product to stakeholders as the proof of concept for an important project of my company, the demo was good when it has achieved the required functionalities and designs.</p><p>From the start, I’m really confident about the team because we have the best people. But due to some unexpected missions, people temporarily have left us, the architect, the developer, and then DevOps. 4 days ago, I cannot imagine that we can deliver the demonstration on time, there are many things to do, from the programming to DevOps tasks to configure and deploy the product to the sandbox environment. Let me share with you some lessons that I’ve luckily had a chance to experience.</p><h4>1. Teamwork is a very important skill</h4><p>Yes, this term has been mentioned many times. But depending on each specific context, applying it is not easy. For my international team, we are trying our best to make it works. We need to coordinate smoothly among members: PO, BA, Designer, and developers. By doing daily or weekly meetings, or documenting as much as possible, pair programming, etc.</p><p>Delegation is one of the keys, giving the chance to the right people at the right time can bring awesome result. So, give the land for people to show their abilities and you will see the miracle.</p><h4>2. See problems as challenges and solutions will come obviously</h4><p>As I mentioned above, we have encountered a lack of people in the team, and with 2 developers, we need to do architect and DevOps tasks to build the development environment. But we have seen them as the challenges and the opportunities to do more things than only programming. The keys are communicating and studying. We need to ask and exchange with experienced people in other teams and self-taught the new knowledge to do the software architecture and Ops tasks. And the positive result has come with us, we success to do things, not the perfect ones but they good enough for the project requirements. IT WORKS!</p><h4>3. Choose a good enough solution</h4><p>There is a regret thing that I have figured out that we have chosen the technologies too earlier when doing architecture for the software. And the reason was we want to use the new technologies for the new project. Of course, applying modern materials is good but depends on the priorities. We have only 2 months to ship the MVP version and with new technologies, we lose time to learn and not sure that we are doing the right practices the tools.</p><p>Moreover, when designing the software, I’ve learned that we should leave the choices for detailed technologies as delay as possible, that we can focus on implementing business and have more inputs for these choices later.</p><h4>4. Prioritizing works is really important</h4><p>There are many things that need to do when building software from scratch: coding conventions, document, development tools, etc. But with the teamwork, we need to have a plan that lists all the <strong>TODO</strong> tasks and prioritize them, then people in a team can understand clearly the roadmap, why they need to do things, and have better organization for their work as well. Otherwise, the team will become a mess step by step.</p><p>And scoping the result of tasks is important too. As developers, sometimes, an issue requires just 1 but we do 2 or even more. So, as the technical leader, I need to define explicitly the context, inputs, and outputs of a task. And exchange usually to be sure that we do not lose time for the fewer priority things.</p><p>So, keep the focus on what we need to do and ask your question every day that is your team doing the <strong>TODO</strong> tasks.</p><h4>5. Keep learning and sharing</h4><p>The more you know, the you will see yourself as smaller. So, keep learning from the colleagues, by reading books (I’ve read <a href="https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html">Clean Architecture from Uncle Bob</a> while doing architecture), by the internet, etc. We are in the digital generosity, we have many resources to learn, the point is you need to define what you want and pay focus on it.</p><p>And keep sharing, of course, a strong team is made from strong members. The knowledge of the project needs the be shared across the team, everyone in a team needs to be able to explain or handle any specific part of the software. If not, your team will face the <a href="https://en.wikipedia.org/wiki/Bus_factor">Bus factor</a> issue.</p><p>I’ve just shared with you some bullet points that I’ve learned. Again, keep learning and experimenting. The project is still in the MVP phase, there are many challenges for us ahead. See you in months later. I hope I can share with you the road to success of the project at that time.</p><p>Keep calm and enjoy your journey!</p><p>You can reach me at:</p><ul><li><a href="https://twitter.com/tlcong">https://twitter.com/tlcong</a></li><li>tuancnttbk93@gmail.com</li><li><a href="https://github.com/tuanlc">https://github.com/tuanlc</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad4d8624dd8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GIT - The power of fixup & autosquash]]></title>
            <link>https://congtuanle.medium.com/git-the-power-of-fixup-autosquash-f1c91f7d962b?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1c91f7d962b</guid>
            <category><![CDATA[autosquash]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[fixup]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Sat, 12 Dec 2020 04:00:42 GMT</pubDate>
            <atom:updated>2020-12-19T02:09:41.930Z</atom:updated>
            <content:encoded><![CDATA[<h4>By a very simple example and practice</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e4OPZdS1yzlMGTqu81VPXw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@yancymin?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Yancy Min</a> on <a href="https://unsplash.com/s/photos/git?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Real programmer life</h4><p>Imagine you are working on the branch feature-X and you have 2 commits:</p><ul><li>second-commit-id second commit</li><li>first-commit-id first commit</li></ul><p>And then, you realize that in the first commit, you have a typo mistake. Then you create a new commit to fix the typo, but the problem is you don’t want to have a dedicated commit to fix a mistake from another commit and the added commit does not intend to add any value to your current feature.</p><p>You can easily to fix it by using git commit --fixup and git rebase --autosquash . Let’s me show you what are they and how to use them:</p><h4>git commit — fixup</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/82476d1c4189a3158ed2245db7cf63e4/href">https://medium.com/media/82476d1c4189a3158ed2245db7cf63e4/href</a></iframe><p>Basically, the commit that you are going to create to fix the typo, instead of you use</p><p>git commit -m &quot;fix type&quot; ,</p><p>You should mark it as the fixup for the first commit.</p><p>git commit --fixup=first-commit-id</p><p>You can check the result by: git log --oneline</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf85637e9334b555d3dbeb6f48a772e7/href">https://medium.com/media/cf85637e9334b555d3dbeb6f48a772e7/href</a></iframe><p>You can see the indicator fixup! and the following message of the first commit.</p><h4>git rebase — autosquash?</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7ae094e000b3d203281c8268ed76480/href">https://medium.com/media/e7ae094e000b3d203281c8268ed76480/href</a></iframe><p>And now is the time to squash commits with the command:</p><p>git rebase -i upstream-branch --autosquash</p><p><em>upstream-branch is the target branch that you want to merge your feature.</em></p><p>Git will show you in an editor the result like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4140360b97515344b79f5d4aef1d6739/href">https://medium.com/media/4140360b97515344b79f5d4aef1d6739/href</a></iframe><p>Notice that the fixup commit is placed right after the first commit</p><p>You save the editor and complete. You can check the result by</p><p>git log --oneline</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/981b7cb8d4bf976684a5ec7401e429e8/href">https://medium.com/media/981b7cb8d4bf976684a5ec7401e429e8/href</a></iframe><p>You can see IDs of your commits may be changed because basically, you have modified the content of the commits.</p><h4>Is that all?</h4><p>Of course, no. There are some more applications of fixup commits. Especially when you ask for review you code. After the first reviews, reviewers would happy if you use fixup commits to modify your pull requests, and they won’t need to review from the start but focus on the adding fixup ones. It saves time for people and then saves money for companies. For example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/177ad44fc2f3d965a72c7445c240c2f8/href">https://medium.com/media/177ad44fc2f3d965a72c7445c240c2f8/href</a></iframe><p>And after the reviewing process done, you can rebase with autosquash before merging your PRs.</p><p>Enjoy programming!</p><p>If you like the post, you can buy me a Coffee at <a href="https://ko-fi.com/tlcong">https://ko-fi.com/tlcong</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1c91f7d962b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenPaaS story: Road to Production]]></title>
            <link>https://medium.com/linagora-engineering/openpaas-story-road-to-production-9d7c3b571dcd?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d7c3b571dcd</guid>
            <category><![CDATA[openpaas]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Mon, 11 May 2020 09:10:35 GMT</pubDate>
            <atom:updated>2020-05-11T09:10:35.797Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_l2biBQ2Ixbjb02M-naoDg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@arstyy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Austin Neill</a> on <a href="https://unsplash.com/collections/3795125/deploy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In the life cycle of an application, deploying to production is one of the most important phases. At <a href="https://linagora.com/">Linagora</a>, <a href="https://open-paas.org/">OpenPaaS</a> is not an exception and this article will tell you our encountered problems and how OpenPaaS team deals with them in the first phase to go to production.</p><p><strong>PROVE</strong></p><p>There are a ton of companies outside with millions of applications that have similar functionalities. How do we make customers believe us and choose our solutions? In Linagora, we converge many convincing criteria, and one of them is we are doing <a href="https://en.wikipedia.org/wiki/Open_source">Open Source Software,</a> we respect customers’ data privacy, transparent everything (source code, documentation, roadmap, etc).</p><p>The most things that customers care about are: security and performance. It is not like when you develop in your local with few users, you just focus on features. When your application goes live and provides services to thousands or even million users, performance and security are the real problem and we need to prove to customers on this point. OpenPaaS team has developed a <a href="https://github.com/linagora/gatling-openpaas"><strong>tool</strong></a><strong> </strong>to able to challenge our server by simulating production environment with a thousands of user requests during a certain amount of time. For security, we have taken our best efforts to upgrade vulnerable dependencies as well as refactor code base to avoid sensitive information leaking mistakes.</p><p><strong>PREPARE</strong></p><ol><li>Distribute system</li></ol><p>To go live, the system needs to ensure:</p><ul><li>Availability</li><li>Fault tolerance</li><li>Speed</li><li>Scalability</li></ul><p>OpenPaaS team has distributed services (Databases, James, Nodejs Server, etc) by using <a href="https://kubernetes.io/">Kubernetes</a> and <a href="https://helm.sh/">Helm</a> package management.</p><p>2. Sandbox environment</p><p>Of course, during the R&amp;D process, we already have testing environments but to be sure everything is good before going live, we need an environment that is closed to the production one. Our DevOps team has done a good work to have it. Now, with some easy clicks, a new releasing version is available to test.</p><p>3. Data store</p><p>Docker came with awesome features that support developers with a quick and easy way to start services such as database, elasticsearch, rabbitmq, etc. However, production is an absolutely different story, data is the most important thing that requires a stable data store, backup and restore when bad things happen. And we don’t trust Docker at this point (at least at this time). So, the OpenPaaS team decided to store data outside of k8s and in the real machine.</p><p>We also have many workshops and hard work on data backup and restore. With many technologies and in a distributed environment, we need to have a good and safe way to backup &amp; restore data.</p><p>4. Releasing workflow</p><p>Go live requires the development team to have a smooth workflow to quickly and easily deploy a new version to Sandbox &amp; Production environment. In the OpenPaaS team, we have defined clear steps for this, for example, once the development team has fixed bugs, we release a release candidate version, then deploy to a Sandbox environment, and ask QA to verify the fix and possible impact on features if there are. Then, if everything is OK, we release an official version, deploy it again to Sandbox to be sure the basic features work before deploy the official one to production.</p><p>Our QA team mixes manual and automation tests on the Sandbox environment. This helps manual test to focus on the bug fixes and automation tests to cover almost basic functionalities.</p><p><strong>DEPLOY</strong></p><ol><li>Migrating</li></ol><p>Cool! Now, we go to an interesting part, deploying our production application to customers. Because each customer has a particular old platform and data, we need to have a specific migration process. This requires us to work with customers to deal with specific data structures and businesses. For example, our mail server <a href="https://james.apache.org/">James</a> needs to reindex all of the emails in the old platform to Elasticsearch, and with the millions of emails in the old platform, one process with sequence reindexing requires a lot of time to get his part done. So James team comes with a parallel solution to have multiple processes to reindex emails.</p><p>2. Monitoring</p><p>Once we go live, we need to have a friendly way to monitor the system. This requires each service in the system to provide a way or API to monitor them. And those APIs will be consumed by monitoring tools.</p><p>3. Trail feedback</p><p>Customers will have a trial period to experiment on the platform before it officially goes live. And in this period, many feedbacks from customers come:</p><ul><li>Bug fixes: Obviously, bugs are always there ;)</li><li>Improvement &amp; customization: That’s it! For example the application theme, language.</li><li>Feature requests: Yes, customers need specific features to handle their specific businesses</li><li>Performance: Performance depends on the deployed system and specific server capabilities (memory, network, etc).</li></ul><p>4. Hot fixes</p><p>Once deployed, if there are bugs that crash the system or make stupid things, we need to have quick fixes for customers to ensure the experiment of users and have real fixes later that require more time to design, refactor, etc.</p><p><strong>Conclusion</strong></p><p>All the results above require rhythmic coordination among components: Developers, DevOps, QA, BA, PO, Designer. OpenPaaS team worked hard to pass the first steps to make our production go live.</p><p>Of course, we just have some small successes in the first phase, there are many challenges waiting for us ahead. We need to improve and prepare our skills, knowledge, and resources to adapt them and we really expect them with the highest motivations.</p><p>If you want to be a part of us to make awesome things and solve together the interesting challenges as above, join us <a href="https://job.linagora.com/"><strong>here</strong></a>. For Vietnamese people, visit us <a href="https://www.linkedin.com/in/linagora-recruiter-vietnam-48a7b1107/"><strong>here</strong></a>.</p><p>Enjoy and Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d7c3b571dcd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linagora-engineering/openpaas-story-road-to-production-9d7c3b571dcd">OpenPaaS story: Road to Production</a> was originally published in <a href="https://medium.com/linagora-engineering">Linagora Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jmap Barcamp 2019]]></title>
            <link>https://medium.com/linagora-engineering/jmap-barcamp-2019-5212944c3731?source=rss-a34bab9701e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5212944c3731</guid>
            <category><![CDATA[jmap]]></category>
            <category><![CDATA[linagora-vietnam]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[barcamp]]></category>
            <category><![CDATA[jmap-client]]></category>
            <dc:creator><![CDATA[Cong Tuan Le]]></dc:creator>
            <pubDate>Tue, 02 Jul 2019 07:37:10 GMT</pubDate>
            <atom:updated>2019-07-02T07:37:10.762Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBGufH31yGbYEr8tbPtkLg.jpeg" /></figure><p>Last week, <a href="http://linagora.vn/">Linagora Vietnam</a> was organizing a barcamp event during three days. The topic was <a href="https://jmap.io/">JSON Meta Application Protocol</a> (JMAP), used for synchronizing and accessing mail data for <a href="https://open-paas.org/">OpenPaaS</a> INBOX. Attendees were the James team, Jungles team, QA team and our guest <a href="https://medium.com/u/86e97d7170d8">Michael Bailly</a>, OpenPaaS product owner from Paris office.</p><p>The aims of this event were:</p><ul><li>Multiple teams work on the same topic</li><li>To cover the latest specifications of JMAP RFC</li><li>Understand the technology: implementation in James and OpenPaaS</li></ul><h4><strong>Preparing</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_uH4DGE9qzN1HiF0RGNk-w.jpeg" /><figcaption>Jmap presentation</figcaption></figure><p>Before we started, <a href="https://medium.com/u/97f5f66c69e8">Benoit Tellier</a> presented about JMAP to all the members:</p><ul><li>What and Why?</li><li>What has been done in James and OpenPaaS</li><li>Latest RFC specifications</li><li>Split tasks and teams into workshops</li></ul><p>And here we go!</p><h4><strong>Running</strong></h4><p>We divided and mixed Java, Javascript and QA teams into different workshops</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-O1eks-W9P1cmknU1sBPQ.jpeg" /><figcaption>Result-reference team</figcaption></figure><p>JMAP allows clients to make more efficient use of the network and avoid<br> round trips, an argument to one method can be taken from the result<br> of a previous method call.</p><p><a href="https://tools.ietf.org/html/draft-ietf-jmap-core-07#section-3.6"><strong>Result-reference</strong></a> team was responsible about:</p><ul><li>Write integration test cases in James to implement this mechanism</li><li>Implement back-reference for James</li><li>Modify <a href="https://github.com/linagora/jmap-client">jmap-client</a> to send multiple commands in a request to James</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNBNrbO8yvPxXPlJA49RGA.jpeg" /><figcaption>Jmap client team</figcaption></figure><p><strong>Jmap client </strong>team modified the jmap-client library to send basic requests: <em>get mailboxes, get messages, rename mailboxes, … </em>to a <a href="https://www.fastmail.com/">fastmail.com</a> server which implemented the latest version of JMAP protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Up4g_ln7kVt-NLs_1gCZwg.jpeg" /><figcaption>RFC &amp; QA team</figcaption></figure><p>JMAP specifications RFC is still in the draft state and some parts/extensions are still not really defined yet. One of those is about quota, which the RFC team was responsible of trying to write down a first proposition for it.</p><p><strong>Bonus topic</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcOUc10VrShQCCNL9pYYiA.jpeg" /><figcaption>MongoDB presentation</figcaption></figure><p><a href="https://medium.com/u/86e97d7170d8">Michael Bailly</a> had a presentation providing nice knowledge on some MongoDB basic features.</p><h4><strong>And not only working …</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*zVY1HnyXrqNDbI_UNcOpNw.jpeg" /></figure><p>Together, we prepared meals (go to market, cook and wash dishes)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CEZHHo9vXqW3eat_YeZevQ.jpeg" /><figcaption>Board games</figcaption></figure><p>Lot of funny board games and beers at nights!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNg1nYKy1WYfchFkjPxZQA.jpeg" /><figcaption>Tam Dao Trip</figcaption></figure><p>And the last day of the event, we visited <a href="https://en.wikipedia.org/wiki/Tam_%C4%90%E1%BA%A3o_National_Park">Tam Dao</a>.</p><p><strong>Result presentations</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3k0CB4Sd_KXHuAPPpFy8RA.png" /><figcaption>Result presentations</figcaption></figure><p>After 2 working days, every team presented or demonstrated their results to share the knowledge among everybody.</p><p><strong>Event review</strong></p><p>We will have a lot of events like this in the future and we should see what we did well, what we should improve and what we should have for the next one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mqk2vuJ5Q4HecHGZiCzcqQ.png" /><figcaption>Event review</figcaption></figure><p><strong>Conclusion</strong></p><p>This was a successful event where every team got a good result on their tasks and we had a lot of awesome experiences together which we cannot have in our daily work.</p><p>Work hard and Play hard!!!</p><p>If you want to be a part of our awesome teams and join events like this one, <a href="https://job.linagora.com/en/">join us</a>!</p><p>Contacts us on:</p><ul><li><a href="https://www.facebook.com/linagoravietnam">Facebook</a></li><li><a href="https://twitter.com/linagora">Twitter</a></li><li><a href="https://www.linkedin.com/company/linagora/">Linkedin</a></li></ul><p>Thank you and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5212944c3731" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linagora-engineering/jmap-barcamp-2019-5212944c3731">Jmap Barcamp 2019</a> was originally published in <a href="https://medium.com/linagora-engineering">Linagora Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>