<?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 Jayjitraj Jadeja on Medium]]></title>
        <description><![CDATA[Stories by Jayjitraj Jadeja on Medium]]></description>
        <link>https://medium.com/@j2r?source=rss-9cc119815492------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jCcgIWnqibMSxc43.</url>
            <title>Stories by Jayjitraj Jadeja on Medium</title>
            <link>https://medium.com/@j2r?source=rss-9cc119815492------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:46:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@j2r/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[Drupal | What is Progressive Decoupled and when to use]]></title>
            <link>https://medium.com/@j2r/drupal-what-is-progressive-decoupled-and-when-to-use-32c4462a637?source=rss-9cc119815492------2</link>
            <guid isPermaLink="false">https://medium.com/p/32c4462a637</guid>
            <category><![CDATA[cms]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[decoupled]]></category>
            <category><![CDATA[drupal]]></category>
            <dc:creator><![CDATA[Jayjitraj Jadeja]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 19:53:04 GMT</pubDate>
            <atom:updated>2023-09-07T19:53:04.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*E_oi6Op2WRz1reS-cja4lg.png" /><figcaption>Drupal Architecture patterns</figcaption></figure><h3>What is Progressive Decoupled</h3><p>Progressive decoupling in Drupal refers to an approach where you progressively separate the front-end and back-end aspects of a Drupal website or application. This approach allows you to leverage Drupal’s robust content management capabilities (typically associated with server-side rendering) while also taking advantage of modern JavaScript frameworks for building dynamic and interactive user interfaces (typically associated with client-side rendering).</p><p>The front-end JavaScript application consumes the data from Drupal through these APIs and handles the rendering of user interfaces on the client side. This allows for a dynamic, interactive experience without requiring a full page reload.</p><p>Progressive decoupling in Drupal provides a balance between maintaining Drupal’s content management capabilities and taking advantage of modern front-end technologies. It allows developers to build highly interactive and performant user interfaces while still benefiting from Drupal’s robust content authoring and management features.</p><h3>When to decoupled components instead of coupled</h3><p>We can establish specific fundamental guidelines to determine which aspects should be separated through decoupling and which ones can be developed as standard Drupal components.</p><ul><li>Emphasizing Interaction: Components that demand increased JavaScript development and user engagement. Examples : slider or graphs.</li><li>Complex data flow: Where data flow is complex and based on user selection you want to display the following elements. Example : Quiz, Review</li><li>External Integration: This pertains to scenarios in which data originates from an external system through an API, and the API can be directly utilized by the browser instead of introducing an additional layer at the server side.</li><li>Dynamic components that do not require caching and display information based on the user’s elements like location, browser, device etc</li><li>Personalization: Components that need to be displayed data based on user’s attribute to personalize the output based on user’s history, preference etc</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32c4462a637" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why coupled Drupal is not the right fit for logged-in user websites and what are the solutions]]></title>
            <link>https://medium.com/@j2r/why-coupled-drupal-is-not-the-right-fit-for-logged-in-user-websites-and-what-are-the-solutions-1b522034b895?source=rss-9cc119815492------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b522034b895</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[cms]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Jayjitraj Jadeja]]></dc:creator>
            <pubDate>Thu, 22 Jun 2023 15:41:36 GMT</pubDate>
            <atom:updated>2023-06-22T15:41:36.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w_0SPux9pJJxrXlA" /><figcaption>Photo by <a href="https://unsplash.com/@rubaitulazad?utm_source=medium&amp;utm_medium=referral">Rubaitul Azad</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Drupal provides features for user accounts, permissions, and personalized content. It provides robust user management features, authentication mechanisms, and access control capabilities. Drupal’s flexibility allows developers to create custom user experiences and implement various user-centric functionalities.</p><p><strong>Scenarios :</strong></p><p>However, there may be certain scenarios where Drupal might not be the ideal fit for logged-in user websites. Here are a few considerations:</p><ul><li>The objective is to accommodate a significant number of logged-in users.</li><li>Personalization is required for each persona</li><li>User can CRUD over entity, e.g., ability to create article or post</li><li>Performance standard that needs to meet like: Page load time should be less than 2 seconds or Capable of handling high volumes of traffic efficiently</li></ul><p><strong>Why Coupled Drupal is not the right fit for this :</strong></p><p>Drupal heavily relies on both internal and external caching mechanisms for optimal performance:</p><ul><li>Internal caching: Drupal utilizes table-based caching to store and retrieve frequently accessed elements such as pages, entities, and views. This helps in improving the overall performance by reducing the need for repetitive processing.</li><li>External caching: Drupal leverages various external caching tools to further enhance performance. Varnish, for instance, plays a significant role in caching rendered pages, while CDNs (Content Delivery Networks) cache assets and pages, providing faster access to users across different geographic locations. Additionally, Memcache is commonly used to cache queries, and Redis can be employed in specific scenarios to enhance caching capabilities.</li></ul><p>External caching like Varnish and CDN page caching can&#39;t be used for logged-in users. <br>While Drupal components such as views and blocks can be cached, the page load time for logged-in users can still be affected by the Drupal bootstrap process and the presence of additional modules and custom code. Although Drupal bootstrap itself is fast, the inclusion of external modules and customizations may cause the page to load in more for logged-in users.</p><p><strong>Possible Solutions:</strong></p><ol><li>Decoupled Approach: Consider adopting a decoupled architecture where Drupal is utilized for content management while user-level logic such as authentication, authorization, and personalization is handled outside of Drupal, potentially as part of a separate microsite or middleware. This approach allows for greater flexibility and scalability by separating the responsibilities of content management and user interactions.</li><li>Progressive Decoupling: This approach is suitable when logged-in users have limited interactions with the site, such as viewing profiles and accessing specific dynamic components. In this case, treat the site as if it were for anonymous users, utilizing APIs to authenticate and load the dynamic components for logged-in users. By gradually decoupling specific sections of the site, you can achieve a balance between dynamic functionality and the benefits of Drupal’s content management capabilities.</li></ol><p>These solutions offer flexibility and scalability, allowing you to optimize the user experience for logged-in users while leveraging Drupal’s strengths for content management and administration. The choice between decoupled or progressive decoupled approaches depends on the specific requirements and complexity of your project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b522034b895" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Middleware and BFF(Backend For Frontend) and differentials between MW and BFF]]></title>
            <link>https://medium.com/@j2r/what-is-middleware-and-bff-backend-for-frontend-and-differentials-between-mw-and-bff-3bc53de9c5d8?source=rss-9cc119815492------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bc53de9c5d8</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[backends-for-frontends]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Jayjitraj Jadeja]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 16:41:32 GMT</pubDate>
            <atom:updated>2023-04-17T18:45:17.370Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is BFF(Backend For Frontend) and difference between MW and BFF</h3><h3>BFF :</h3><p>As the name suggests, Backend for Frontend is a layer that sits between the Frontend and the backend. The BFF acts as a mediator between the frontend application and the backend services or API. The responsibility of BFF is to transform the API according to the Frontend needs. It handles all the business logic required by the frontend and delivers a clean and easy to use API that is optimized for the needs of the specific frontend. Individual Frontend channels will have their own BFF.</p><h3>Why you need BFF</h3><p>The situation arrives when there are multiple channels in Frontend and all require multiple types of API responses or data with different structures. Let&#39;s take an example of an ecommerce platform. When user open a specific product, the web version does require a lot more information like product data, ratings and reviews, images, FAQs etc where as a mobile app would require very limited information like product data and rating.</p><p>To reduce the network traffic and transforming data according to Frontend is the responsibility of the BFF</p><h3>When to use BFF</h3><ul><li>BFF is commonly used in building microservices based architecture where each service has its own set of APIs.</li><li>BFF is used to aggregate data from multiple services and present it to the frontend as a single API</li><li>Where Frontend channels/consumers are multiples and it requires a different set of information</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCbTYplUC5fdrrl9COziiQ.png" /></figure><h3>Difference between Middleware and BFF</h3><p>We tent to confuse between these two but the difference is significant between the MW and BFF.</p><p>MW sits between the client and the server and is usually used for :</p><ul><li>Orchestration: Contains the logic to request the backend API and process according to the response</li><li>Security: Perform Auth and Auth, validate tokens</li><li>Caching : MW can cache the Backend response to improve the performance</li><li>Logging: Logs of the activity</li><li>Business Logic: MW can contain complex logic and action e.g. Call another service or trigger event based on the request or response</li></ul><p>Usually there is only one MW for the system. API Gateway can perform multiple responsibilities of the MW</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0farMsz2CIbjESkeC9k4Q.png" /></figure><p>BFF</p><ul><li>BFF is specialized backend that is designed to serve a particular frontend application</li><li>Individual Frontend channels do have dedicated BFF</li><li>Major responsibility BFF is to transform the API according to the FE need.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bc53de9c5d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>