{
    "componentChunkName": "component---src-templates-post-page-index-js",
    "path": "/bolt-bi-directional-realtime-streaming-platform/",
    "result": {"data":{"defaultImage":{"childImageSharp":{"fluid":{"base64":"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAALABQDASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAAAAME/8QAFwEAAwEAAAAAAAAAAAAAAAAAAAEDBP/aAAwDAQACEAMQAAAByJtdAZ//xAAXEAADAQAAAAAAAAAAAAAAAAABAhIg/9oACAEBAAEFAkWjOf/EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQMBAT8BP//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQIBAT8BP//EABkQAAEFAAAAAAAAAAAAAAAAAAIAESAhMv/aAAgBAQAGPwKyZaGP/8QAGRABAAIDAAAAAAAAAAAAAAAAAQARICHw/9oACAEBAAE/IQQDW7Z0cf/aAAwDAQACAAMAAAAQDB//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/ED//xAAWEQADAAAAAAAAAAAAAAAAAAABEBH/2gAIAQIBAT8QhX//xAAbEAEAAgIDAAAAAAAAAAAAAAABEVEAICFh0f/aAAgBAQABPxAumKz1gEnii/mv/9k=","aspectRatio":1.9047619047619047,"src":"/static/b9a1fa41d8a11857e973d42dc257e89d/2f1b1/blogs-default-image.jpg","srcSet":"/static/b9a1fa41d8a11857e973d42dc257e89d/fd013/blogs-default-image.jpg 200w,\n/static/b9a1fa41d8a11857e973d42dc257e89d/25252/blogs-default-image.jpg 400w,\n/static/b9a1fa41d8a11857e973d42dc257e89d/2f1b1/blogs-default-image.jpg 800w,\n/static/b9a1fa41d8a11857e973d42dc257e89d/0ff54/blogs-default-image.jpg 1200w,\n/static/b9a1fa41d8a11857e973d42dc257e89d/50fa3/blogs-default-image.jpg 1218w","sizes":"(max-width: 800px) 100vw, 800px"}}},"post":{"id":"cG9zdDoxMzIyOA==","title":"Bolt: Bi-directional Realtime Streaming Platform","content":"\n<p class=\"wp-block-paragraph\">When we started building PhonePe Invest, PhonePe’s stockbroking and mutual funds distribution platform, we needed a system that could power real-time features such as charts, prices, order updates, notifications, and so on.</p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are some of the key use cases we wanted the platform to solve:</p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Streaming of high frequency price feed to power charts, option chains and overall market view.</li>\n\n\n\n<li>Delivery of events (order lifecycle events like confirmations, rejections and trades) and time-sensitive exchange or broker alerts (such as margin requirements for a trade or square off notifications)</li>\n\n\n\n<li>Exchange feed distribution over external Developer APIs with the same reliability as our internal systems.</li>\n\n\n\n<li>Change synchronization ensuring seamless state propagation and UX consistency across web and mobile applications.</li>\n</ul>\n\n\n\n<h2 class=\"wp-block-heading\">Problem Characteristics &amp; Challenges</h2>\n\n\n\n<p class=\"wp-block-paragraph\">Following are some of the important challenges that the system had to be resilient to.</p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Users flock to the app at the start of the market and towards closing of the market. This creates a thundering herd of incoming connections and disconnections which the system must be able to handle.</li>\n\n\n\n<li>Market feed pushed by exchanges is often volatile and spikes at the start and end of the market. Any market events (earnings report, news) during the day may also cause spikes in order volume resulting in bursts of order lifecycle events and the tick rate. We should be able to handle these spikes while still maintaining the latency SLA.</li>\n\n\n\n<li>Users could be on slow networks (2G/3G), may have jittery network performance, packet loss, connected through proxies, travelling, and so on. Problems such as half-open connections and backpressure arising out of these scenarios needed to be handled.</li>\n\n\n\n<li>On low-end mobile devices, high rate, and volume of ticks needs to be handled efficiently, otherwise this leads to performance issues such as higher battery consumption, UI jank and overall slowness of the app.&nbsp;</li>\n\n\n\n<li>Using bloated protocols e.g. standard JSON for every price tick is inefficient in terms of memory and compute required to represent and encode/decode the messages. Pushing the word &#8220;price&#8221;: millions of times a second eats up massive bandwidth and increases costs. Binary formats (like Protocol Buffers) make the system faster but add a layer of complexity.</li>\n\n\n\n<li>In a distributed feed distribution system, we must ensure that the latency is bounded and ensures fairness so that we offer a bounded SLA for every user.</li>\n</ul>\n\n\n\n<h2 class=\"wp-block-heading\">Expected Scale</h2>\n\n\n\n<p class=\"wp-block-paragraph\">These are some of the numbers around which we started the design of the system.&nbsp;</p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1M concurrent persistent bi-directional connections</li>\n\n\n\n<li>~2L instruments (Equity, commodities, futures &amp; options across exchanges such as NSE, BSE and MCX)</li>\n\n\n\n<li>Assuming 5% of the instruments to be active, and each instrument publishing 3 price ticks per second on an average, expected incoming rate would be 0.05 * 2L * 3 ~ 30K messages/sec</li>\n\n\n\n<li>For 1M connections, assuming avg of 30 msgs/sec publish rate across subscriptions and 50 bytes per message, bandwidth consumed would be 1M * 30 msgs/sec * 50 bytes = 1.5 GBps</li>\n</ul>\n\n\n\n<h2 class=\"wp-block-heading\">Introducing Bolt</h2>\n\n\n\n<p class=\"wp-block-paragraph\">For users, a reliable and low latency market data stream is absolutely critical as all the investment and trading decisions depend on how the markets move. To be able to tackle all the problems we discussed earlier, we decided to build a system from ground up that allowed control over the various levers to extract performance, fits well into our current production architecture and has less overall operational maintenance.</p>\n\n\n\n<h3 class=\"wp-block-heading\">Technical Decisions</h3>\n\n\n\n<h5 class=\"wp-block-heading\">Network Transport</h5>\n\n\n\n<p class=\"wp-block-paragraph\">We chose websockets as the primary transport to start with, due to its wide and native support in web browsers, extensive libraries, infrastructure compatibility and leveraging already existing web security standards like TLS (wss) as websockets start with standard HTTP/1.1 handshake. Other protocols such as Server Sent Events(SSE) are uni-directional and cannot support the dynamic nature of subscriptions/unsubscriptions. HTTP/2 is yet to be supported by the tail end of the browsers. Even for the browsers who do support HTTP/2, native bi-directional GRPC is not supported due to features such as HTTP2 trailers and binary framing control not being exposed to the javascript runtimes.&nbsp;</p>\n\n\n\n<h5 class=\"wp-block-heading\">Communication Protocol</h5>\n\n\n\n<p class=\"wp-block-paragraph\">Websockets handle the framing on top of the raw underlying TCP connection and allows exchange of both text and binary messages. We went ahead with a custom binary pub-sub protocol which allowed us to play with the raw binary messages and leverage various optimization techniques like zero copy for efficient distribution of messages across connections.</p>\n\n\n\n<h5 class=\"wp-block-heading\">Programming Language &amp; Frameworks</h5>\n\n\n\n<p class=\"wp-block-paragraph\">Java is the primary programming language used across PhonePe. For a realtime low-latency system, the preferred way usually is to use languages like C++, Rust etc. with manual memory management to avoid the pauses introduced by garbage collection as well as for overall faster computation.</p>\n\n\n\n<p class=\"wp-block-paragraph\">We went ahead with Java in favour of overall tech stack standardization and easier developer operability, re-use of common platform libraries and infrastructure within PhonePe, and for simpler maintenance. With this, challenges such as native memory management, cache locality, boxing/unboxing, connection management at scale etc. needed to be solved.&nbsp;</p>\n\n\n\n<h2 class=\"wp-block-heading\">High Level Architecture</h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-13540 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:29.6875%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAIAAABM9SnKAAAACXBIWXMAAAsSAAALEgHS3X78AAABZUlEQVR42i3ES07CQAAA0CZYgenMtFBoy7RqLaKAIAujQaPxX1qtQ5mWjyai+DkFCcHEhYka3bkwxhO4cKErt17AE6mJycvjVLChgk3tz5YGtgm0deQQ5GjQJsjNwD8EeRno6dgnyP9dxw0DBzpmnAF2SOyfDhwCbMhV5ZG1cUhV3jMgmxQ7RAjNZMcQfYJpBlEFeHLc1RDlZtNsaaqbE2lebuSk+vx4d9B9268Mi+nDq9PP3uoLW769Pv/yF+9NhWlwd87qPQ++++13DVOunGytz1zMSmEl3S7JYdU86x+80spwTu0Ojj6OV57Y8s3lyWd94W5MpnrCm1SDi8bj4cZDRqJcPhqUhGaO9/MxVgBBNkpVblOP2FnAxvi6CQMLdwwYTiSaRNxTkJsS7HhkBURXZWxzZb5d4pslvlXkw+JoWIg18/FwOsaseN0S6ATwDGFXh64m1DTsKKiWwrYiOSmplsTbPzglSJ8cIF9kAAAAAElFTkSuQmCC\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/5b9eef64adb4e9b4dd53a0b71c46ba36/85b06/Bolt-REVISED-05.png 256w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/bc282/Bolt-REVISED-05.png 512w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/f1720/Bolt-REVISED-05.png 1024w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/dabea/Bolt-REVISED-05.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/5b9eef64adb4e9b4dd53a0b71c46ba36/85b06/Bolt-REVISED-05.png 256w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/bc282/Bolt-REVISED-05.png 512w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/f1720/Bolt-REVISED-05.png 1024w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/dabea/Bolt-REVISED-05.png 1080w\" src=\"/static/5b9eef64adb4e9b4dd53a0b71c46ba36/f1720/Bolt-REVISED-05.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/5b9eef64adb4e9b4dd53a0b71c46ba36/85b06/Bolt-REVISED-05.png 256w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/bc282/Bolt-REVISED-05.png 512w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/f1720/Bolt-REVISED-05.png 1024w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/dabea/Bolt-REVISED-05.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/5b9eef64adb4e9b4dd53a0b71c46ba36/85b06/Bolt-REVISED-05.png 256w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/bc282/Bolt-REVISED-05.png 512w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/f1720/Bolt-REVISED-05.png 1024w,\n/static/5b9eef64adb4e9b4dd53a0b71c46ba36/dabea/Bolt-REVISED-05.png 1080w\" src=\"/static/5b9eef64adb4e9b4dd53a0b71c46ba36/f1720/Bolt-REVISED-05.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span></figure>\n\n\n\n<h3 class=\"wp-block-heading\">Core Components</h3>\n\n\n\n<p class=\"wp-block-paragraph\">There are essentially two main components in the bolt cluster:</p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Bolt Broker</strong> : This is the end-user facing cluster of nodes on which the persistent connections land. Brokers essentially handle connections management, subscriptions management, efficient message processing, etc. Any updates originating from internal systems which could be user-aware(unicast/multicast) or topic-aware(broadcast), decisioning around user interests, and final dispatch is handled by the brokers. For instance, market feed which is volatile and user-agnostic is consumed directly by the brokers and dispatched to the user as per their subscriptions. Bolt Broker also runs market feed listeners and takes care of fan-out of market feed to the users.&nbsp;</li>\n</ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Bolt Dispatcher</strong>: This is the internal-facing service through which all user-aware requests-to-push are routed through. Dispatcher maintains the state of the cluster and knows which users are on which nodes of the broker. Given a message that needs to be pushed to a user, the dispatcher looks up the list of broker nodes where the user is currently connected to and then calls those broker nodes to push the message to the user.</li>\n</ol>\n\n\n\n<h3 class=\"wp-block-heading\">Dispatcher &lt;-&gt; Broker Interaction (Unicast/Multicast Flows)</h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-13564 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:58.203125%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsSAAALEgHS3X78AAACtElEQVR42h3Ry04aURzH8QOCwMw5Z2a4DjLADDEKCqIIVAShCIhchosKily9cUmtrWnS2HZlenFljE102V3dNGlXfYAmpn2IrvoCmrQ+QEeT3/Zzvv/kgCx4kQbPE+BpTDYIy/eCis6MsuEZrjlVlVF1mSdEiyZtIpN6uMigGETzahxUUQEl5VdQPpACBwmw/1g2iMh7oaEdv6I1rax7VDWXWsIlu0YUqJKNLprwMgPjOiap0yUhE1FR90+AmKwflfekZmhoO6BoS1m3ckMAolWW5VWiTS0GrH2XsTPDHmS8Zy5rz2nrsqaiCgUJah7MybeC8k5Q0ZqVmor6pKLqw43j8rcPle8zbFtAos+4n3Gfh6d+pEJ/Yu6rjO+c5+qYiUAqCgKaZpBseZV1r7I6TdYn1RteutZPXfRTlxPadSuRd2t3xNnr7trf992b16Xb6qPPDtumlctTOA5CbDtq212wvkx5LqK2E5+h69FVHVhkQMxG5O2w4NX365FfH5/cXb/996l904x8GbdvjRhzejoDxlBhgionXSdHu7eHqZ+z5l0HKkyNbPqFloMuCXTJo+ulXWfH5d9Xg7t3xeuE59Rt75uZvIkqADOxaEMZJ9XwmQZh4dCpb5hVqVFdyclWRogcR4rjdGeM3p7jXuWmLv380XrmzGPvG6UvpFaAlgzryAUDjOqJqIGIs2TSTC6xGmlpC8xaYN6OVnh63YJWBX3Fy+85tC2erllxVRqAKIBQkIIhLYxoYUwP40aYYOGSGS6bYXYE5i1INBE5D7fVXDx1sg0OrtnxBo9rPN4EKjytwT4SBTCao2FYK51w75MmmDbDjIQ5XDSqcxHnszerXy2aNckIuOG4XxMMYfcw9j74IIbzDFzQwccGmDDBJfYBW1CBQ2UOrVpRRQoKuC4xB245cOs/eGqWdfAaVCoAAAAASUVORK5CYII=\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/e5487dc0eb60ab0fa968061964581398/85b06/Bolt-REVISED-06.png 256w,\n/static/e5487dc0eb60ab0fa968061964581398/bc282/Bolt-REVISED-06.png 512w,\n/static/e5487dc0eb60ab0fa968061964581398/f1720/Bolt-REVISED-06.png 1024w,\n/static/e5487dc0eb60ab0fa968061964581398/dabea/Bolt-REVISED-06.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/e5487dc0eb60ab0fa968061964581398/85b06/Bolt-REVISED-06.png 256w,\n/static/e5487dc0eb60ab0fa968061964581398/bc282/Bolt-REVISED-06.png 512w,\n/static/e5487dc0eb60ab0fa968061964581398/f1720/Bolt-REVISED-06.png 1024w,\n/static/e5487dc0eb60ab0fa968061964581398/dabea/Bolt-REVISED-06.png 1080w\" src=\"/static/e5487dc0eb60ab0fa968061964581398/f1720/Bolt-REVISED-06.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/e5487dc0eb60ab0fa968061964581398/85b06/Bolt-REVISED-06.png 256w,\n/static/e5487dc0eb60ab0fa968061964581398/bc282/Bolt-REVISED-06.png 512w,\n/static/e5487dc0eb60ab0fa968061964581398/f1720/Bolt-REVISED-06.png 1024w,\n/static/e5487dc0eb60ab0fa968061964581398/dabea/Bolt-REVISED-06.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/e5487dc0eb60ab0fa968061964581398/85b06/Bolt-REVISED-06.png 256w,\n/static/e5487dc0eb60ab0fa968061964581398/bc282/Bolt-REVISED-06.png 512w,\n/static/e5487dc0eb60ab0fa968061964581398/f1720/Bolt-REVISED-06.png 1024w,\n/static/e5487dc0eb60ab0fa968061964581398/dabea/Bolt-REVISED-06.png 1080w\" src=\"/static/e5487dc0eb60ab0fa968061964581398/f1720/Bolt-REVISED-06.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span></figure>\n\n\n\n<p class=\"wp-block-paragraph\">This flow is used for all unicast/multicast use cases where a message is pushed to a set of users.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">Broker emits lifecycle events(connections, disconnections, subscriptions etc.) which are used by Dispatcher to maintain a mapping of user-&gt; broker nodes. Whenever a request arrives at Dispatcher to push a message to a user, Dispatcher looks up all the nodes a user may be connected to, and calls each of those nodes in parallel to push the message. This mapping is maintained in an in-mem grid at Dispatcher for fast membership lookups.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">Dispatcher also maintains all the persistent topics and the associated metadata such as QOS, delivery constraints etc. which are change propagated to Broker nodes for topic validations during subscriptions.</p>\n\n\n\n<h3 class=\"wp-block-heading\">Feed Distribution Flow</h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-13576 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:58.203125%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsSAAALEgHS3X78AAACvElEQVR42hWR204aUQBFjyBzPWeGGRzAQQe5KyDIReQyOAioKCiiI0JVFAUtQqNWanp5bJqmj021iWka+2LamPQH/JJ+TjHZ72tlbWBnGna0P4FeTDA1CVUlpBqJkokqinBtFK2a4bIR5kfgAgfn9SiF0ByJIqItI0gpDfQBL9edES/mnNczlr7HcGyjGo35m/XIJ4+xFbFf+MdbI1RWgDkDVBgyxcIkhDHBnOaMCQwGgQud7sl3TeU+aHnjM5242VZn7XFP+RF3XC9Nf4p7LvS69Lyve7LyTTLnjYzMkHEaj9LULIIx4GBau/L39uJ9yNqfMh4HzGeV3GPed9OYv/3YeApKL93msuw/XfBdTo5X/da2hV2RDCUjVEZoGUygw4PMXTv3KyBdhmwdn3ASHuuHRl+Hx87j9rd+U8ekXUiH3u0VfheV2+7Wv1Lqc2P1b8BUE4kssDL769EvauJr2HkVdpyGx3sHlSc19hA09uLS+5DYk4hVG1V2o80prhow1GeEmoss+znViZfAGFNvL/3srjxMjfWsfG1Cv+PiGpOGpnfkKGA69fGHdnLdSWy4sA0PVgnAqhdXvcNbg/l1KhA5dc5znvL23WJL5NYFmB/cI9KFcapoJUt2ouwiKh58y4ttT2M7Sf4owTRD2t3o8H5UuwcgmyboJA1lwbDIw6yAFs2wMEoVLPizrZOoTBKqD68GdPUIth/DD2Y1BwntcVJznNK0AMnGKTbJ6tM8n9EPGqKcQOYdho0Zy64VW3Pjm89MXW1Ai+kOZbwta9qZoc7C0Fl2qAswdpZgYzSb4HlF4LKj/JKBzGSnzz+of6xY0Y92gnQ9QjXmiKZMnihYJwM6efBqCZwvgwugY8M4GyWZGGJSHKMITNZE5236ckDYdZDlKWJ7Gq+HB8K6ZkrbVoY6OdArgMtVcFUE/f/A+JRCzvzGDQAAAABJRU5ErkJggg==\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/f7fdc4fea87411353264a480fd282453/85b06/Bolt-REVISED-07-1.png 256w,\n/static/f7fdc4fea87411353264a480fd282453/bc282/Bolt-REVISED-07-1.png 512w,\n/static/f7fdc4fea87411353264a480fd282453/f1720/Bolt-REVISED-07-1.png 1024w,\n/static/f7fdc4fea87411353264a480fd282453/dabea/Bolt-REVISED-07-1.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/f7fdc4fea87411353264a480fd282453/85b06/Bolt-REVISED-07-1.png 256w,\n/static/f7fdc4fea87411353264a480fd282453/bc282/Bolt-REVISED-07-1.png 512w,\n/static/f7fdc4fea87411353264a480fd282453/f1720/Bolt-REVISED-07-1.png 1024w,\n/static/f7fdc4fea87411353264a480fd282453/dabea/Bolt-REVISED-07-1.png 1080w\" src=\"/static/f7fdc4fea87411353264a480fd282453/f1720/Bolt-REVISED-07-1.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/f7fdc4fea87411353264a480fd282453/85b06/Bolt-REVISED-07-1.png 256w,\n/static/f7fdc4fea87411353264a480fd282453/bc282/Bolt-REVISED-07-1.png 512w,\n/static/f7fdc4fea87411353264a480fd282453/f1720/Bolt-REVISED-07-1.png 1024w,\n/static/f7fdc4fea87411353264a480fd282453/dabea/Bolt-REVISED-07-1.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/f7fdc4fea87411353264a480fd282453/85b06/Bolt-REVISED-07-1.png 256w,\n/static/f7fdc4fea87411353264a480fd282453/bc282/Bolt-REVISED-07-1.png 512w,\n/static/f7fdc4fea87411353264a480fd282453/f1720/Bolt-REVISED-07-1.png 1024w,\n/static/f7fdc4fea87411353264a480fd282453/dabea/Bolt-REVISED-07-1.png 1080w\" src=\"/static/f7fdc4fea87411353264a480fd282453/f1720/Bolt-REVISED-07-1.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span></figure>\n\n\n\n<p class=\"wp-block-paragraph\">At any point of time, there could be thousands of users connected to a single broker node. Each of these users may be interested in 100s of topics across the complete topic space as per the state of the listeners (app). For example, if a user is viewing the option chain of a stock, the user will need to subscribe to all the options for real-time pricing information which are visible in the viewport. If there are 10000 connections on a broker node, 100s of topics per connection on an average would result in ~1M message fanouts that the broker needs to handle.</p>\n\n\n\n<h2 class=\"wp-block-heading\">Optimization Strategies</h2>\n\n\n\n<h5 class=\"wp-block-heading\">Connection Sharding</h5>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-13588 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:96.09374999999999%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAATCAIAAAAf7rriAAAACXBIWXMAAAsSAAALEgHS3X78AAAEJElEQVR42h2UyW8bZRTAPy/jGY+/bTwej8dLvCVulDirkziJ931f4iSO49jOSlPSsLREokGiIEFB7QFUxBGBOCBV5d4ipCCQOFRcufTQigqBql4o/0EZI/30br/3nt7Te0BP5xkaYskCj8MIRwQUl0xpBywFxK0A7E5wg3n+IMTshnX7Ue3lpOYkC94ogLfL4J0KOAOqaaALLFni8TLGETNOCmx8ZvTwo0+fH+z80Y09uZF/ljafhTS9iO5yQnslA05z4K0iuFYC14GBLnJkyUjCJrKKUUzEKTMbn/Idvnv+527n6WH+yceNZ1npbE7TXdUdxbTHSc3r2aH/plofcDRsJMs8WcE0KuCEiNMyzDpRyYvXxul2EPdn+N4suxNiBmH9QUR3FNcdpzQnac3VrOYUqNqwJo1RmhBIUiIZG847YdFtqozCxjhsTbCb0+z2vKG/ZNhd1h9E9a+pflx7nNBcAZBEERmalCQFlLLAjAzz6sCs+mzIPliy73u0tSDbmWa255idkG6wpNtbZQ5XdIcR7REgJEFI0kzTZpIWUcaK8gouiUy6uvDexZ1/fzx/2Qx84NPVp7ihP8t0Q0x/0bC7qFez7AKBZFREmhNxzoLyMiooqGRhc9++/+jXuy8vzv/5qvubl6lNcJuTbDtoaE8bOrNsV80yx3SBSPIqVlqQSEHCRRsqKagsGjLn/XuPv3n1++1XN3L3XfpigGtd4lrj7PoEuxHk2pOGzaBhE0ikpCKTskwqdlqzo8oIbfillk9s7WXu7sW/CAgbE+LGmKnl55oB4/oY17xkXAuwTRUgk6qMqwqtW1GZY2IUZq1CwUUboj4lGFbMhhVZl/LAikddAZe2amNeY8XH17xcRQUopGEnTSuqzToOPys/+HLt4ef1h05jOVK83bt50bv5UyR3a1zYvpL74Wrqwd7y915UdfF5p3EIcJCWk6zLsL7qOX10+uLn46e/nPzl4sqVo++u3Xt+7f6L4v7Xk9Lgk/7ftzaefth6PIJLNlPKxqdtfAq4yKYLb7ppWzGtjTk6M6N7bqllM1UdqDLhagfdbQXmRS7lt1cn/et2c0bk41aUsJiioikK3KQzgreGkbRHpW2ftOURNxyk4RQaI2Ldba0rQlFCGYeloIhZ2Zw246iAIgSuYLgMPKQ7BG+7YHtc6UemT/xyxwZrCq7NBHrTga6EcmZTckQpzU1tyZYkhGGEwia0oAK8pPc/O06+HRq9fNS9E/QMZFNNRpV64ayavy7CDDLGLo01u91zpyvH8iGeLHB4TgX4yMBH+l7c82C1hc60Z1+dnx03rbDsU1oee53CFMVJSmMj7gLESxwOsXiWwTMMngJ+susnAy/ue/COG3fs/LoDt1RZwVULLJhhVj1SihPqk+H4RSNe5PC8aurxlI4E/wM+ROmaxT+VewAAAABJRU5ErkJggg==\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/49f4cb17647f8824a465efa4c93414d5/85b06/Bolt-REVISED-08.png 256w,\n/static/49f4cb17647f8824a465efa4c93414d5/bc282/Bolt-REVISED-08.png 512w,\n/static/49f4cb17647f8824a465efa4c93414d5/f1720/Bolt-REVISED-08.png 1024w,\n/static/49f4cb17647f8824a465efa4c93414d5/dabea/Bolt-REVISED-08.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/49f4cb17647f8824a465efa4c93414d5/85b06/Bolt-REVISED-08.png 256w,\n/static/49f4cb17647f8824a465efa4c93414d5/bc282/Bolt-REVISED-08.png 512w,\n/static/49f4cb17647f8824a465efa4c93414d5/f1720/Bolt-REVISED-08.png 1024w,\n/static/49f4cb17647f8824a465efa4c93414d5/dabea/Bolt-REVISED-08.png 1080w\" src=\"/static/49f4cb17647f8824a465efa4c93414d5/f1720/Bolt-REVISED-08.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/49f4cb17647f8824a465efa4c93414d5/85b06/Bolt-REVISED-08.png 256w,\n/static/49f4cb17647f8824a465efa4c93414d5/bc282/Bolt-REVISED-08.png 512w,\n/static/49f4cb17647f8824a465efa4c93414d5/f1720/Bolt-REVISED-08.png 1024w,\n/static/49f4cb17647f8824a465efa4c93414d5/dabea/Bolt-REVISED-08.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/49f4cb17647f8824a465efa4c93414d5/85b06/Bolt-REVISED-08.png 256w,\n/static/49f4cb17647f8824a465efa4c93414d5/bc282/Bolt-REVISED-08.png 512w,\n/static/49f4cb17647f8824a465efa4c93414d5/f1720/Bolt-REVISED-08.png 1024w,\n/static/49f4cb17647f8824a465efa4c93414d5/dabea/Bolt-REVISED-08.png 1080w\" src=\"/static/49f4cb17647f8824a465efa4c93414d5/f1720/Bolt-REVISED-08.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span></figure>\n\n\n\n<p class=\"wp-block-paragraph\">To handle this fanout efficiently in the broker, instead of maintaining a single, massive global routing table that maps a topic directly to every connected user, we split the routing into two tiers: the Distribution Groups Manager (DGM) and the local shards (Distribution Group) arranged hierarchically. A DG is essentially a logical sub-group of connections currently on that node and maintains a mapping of topic -&gt; connections. DGM maintains a mapping of topic -&gt; DGs.</p>\n\n\n\n<p class=\"wp-block-paragraph\">Whenever a connection arrives, the connection is assigned to one of the Distribution groups as per the load distribution. A Distribution Group has its own ring-buffer, a topic-&gt; connection mapping and a processor thread that handles fan-out to the connections.</p>\n\n\n\n<p class=\"wp-block-paragraph\">When a user subscribes to a topic on this connection, the DG adds a mapping of topic -&gt; connection to its table and then informs DGM that it is interested in this topic. DGM in-turn updates its internal mapping of topic -&gt; DG.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">For distribution of a message M{id=1, topic=T}, DGM first looks up in its table for all DGs interested in topic T and then calls each of these DGs to push the messages. These DGs enqueue the message identifier in their local ring-buffer. The processor thread then picks up the message, looks up all connections interested in the topic, and then notifies each of these connections to push the message M which essentially enqueues this message in the local app-level queue.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">In the fanout path, the system essentially enqueues the market feed packets in the connection level queues of all the connections interested in that topic.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">To push these messages on the connections, a DG also has a pusher thread, which periodically runs a push loop and initiates message push on the connections. All pending messages on a specific connection are batched and pushed as a single message. If the connection is not writable which could be due to rate limiting, the user being on a slow network, drop in packets, etc., bolt drops the message in favour of pushing more recent messages.&nbsp;</p>\n\n\n\n<h5 class=\"wp-block-heading\">Zero Allocation</h5>\n\n\n\n<p class=\"wp-block-paragraph\">In the hot path of market feed consumption and fanout, frequent short-lived object creation and allocation increase Garbage Collection (GC) pressure and high resource consumption, leading to pauses and ultimately &#8220;Stop-The-World&#8221; (STW) pauses that impact the whole system and negatively impact latency.</p>\n\n\n\n<p class=\"wp-block-paragraph\">We employed various techniques like pooling &amp; recycling of objects and ByteBuf wrappers on heap, and used pooled memory allocators for off-heap buffers to reduce overall object allocations in the hot path to reduce GC pressure and minimize the chances of STW pauses.</p>\n\n\n\n<p class=\"wp-block-paragraph\">Since the native/direct memory is outside the control of the JVM, Netty employs reference counting to manage the lifecycle of the references to direct memory, reclaiming or adding the allocated memory back to the pool when the reference count becomes zero.</p>\n\n\n\n<h5 class=\"wp-block-heading\">Direct I/O (Zero copy &amp; Direct buffers)</h5>\n\n\n\n<p class=\"wp-block-paragraph\">Normally, consuming byte arrays of market packet would require copying bytes from kernel to the user space and then again copying of assembled bytes from user space to kernel space as per the user’s subscribed topics. This wastes CPU cycles and increases memory pressure if not managed well.</p>\n\n\n\n<p class=\"wp-block-paragraph\">We leveraged Netty’s CompositeByteBuf, which creates a single logical view of multiple buffers (on/off heap). This allowed the system to add metadata and combine packets without ever physically duplicating the data in memory. For example, memory for a feed packet of ABC stock, would be allocated only once off heap globally, and then would be referenced and composed in a CompositeByteBuf as per the connection’s subscription state. This allows us to allocate memory in the order of market feed rate and not in the order of connections or subscriptions.</p>\n\n\n\n<h5 class=\"wp-block-heading\">Data Structures</h5>\n\n\n\n<p class=\"wp-block-paragraph\">As per our load tests, we found that in the hot path, standard Java collections we used cause significant overhead and GC pressure due to the autoboxing and unboxing of primitive types (like long and int).</p>\n\n\n\n<p class=\"wp-block-paragraph\">To solve this, we leveraged high-performance data structures from libraries like jctools and Eclipse Collections, such as NonBlockingHashMapLong, to avoid boxing. We also built a custom IndexableIntHashSet for the fan-out path to provide fast membership checks and dense iteration without allocations.</p>\n\n\n\n<h5 class=\"wp-block-heading\">Pre-computed Feed Views</h5>\n\n\n\n<p class=\"wp-block-paragraph\">Bolt has the concept of event types in a topic where a user can subscribe to one or more event types for a given topic. The event types are essentially views of the data that flows in the topic. For market feed, topic maps to a given stock while event types correspond to one of LTP, Quote, Market Depth or Greeks. This allows the app to subscribe/unsubscribe data as per the section the user navigates to and allows the server to send data that is absolutely needed.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">Over the complete app lifecycle, a user may subscribe &amp; unsubscribe to hundreds of topics and event types. At the level of a broker node, there may be tens of thousands of connections each with its own subscription state. On an average if a connection subscribes to 50 topics and 2 event types per topic, with 10000 connections per node, naively we would have to build and push ~1M new messages/sec which will definitely not scale in terms of the resources required to fan out these messages.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">Within a single topic, the LTP, Quote, Market Depth and Greeks payloads are identical across all subscribers; the only variable is which subset of event types a given connection has subscribed to. So, rather than constructing a bespoke message for each connection at delivery time, we construct each message once at publish time and allow every connection to reference the variant it requires. When a message to be published arrives on a topic, we decompose it into its constituent event types and pre-generate the payloads for the relevant combinations. All these combinations can be looked up by message IDs derived by bit masking techniques on the original message ID and the event types.&nbsp; Due to this, the delivery of messages is just assembling references from this shared pool of messages(all allocated off-heap) and makes the overall fanout path super efficient.</p>\n\n\n\n<h2 class=\"wp-block-heading\">Operational Stability &amp; Safeguards</h2>\n\n\n\n<h5 class=\"wp-block-heading\">Rate Limiting &amp; Moderation</h5>\n\n\n\n<p class=\"wp-block-paragraph\">Connection creation, subscribe rate, the number of topics that can be subscribed were added to ensure fair resource usage.&nbsp;</p>\n\n\n\n<h5 class=\"wp-block-heading\">Connection Lifecycle Management</h5>\n\n\n\n<p class=\"wp-block-paragraph\">The users could be on networks with varying quality of service(2G, 3G, Wifi), device capabilities, proxies etc which usually make the connections flaky and the data transfer jittery. To ensure liveness of the connections, we maintain a ping-pong cycle between the client &amp; server to clean up idle connections.</p>\n\n\n\n<p class=\"wp-block-paragraph\">The system also tracks and enforces bandwidth consumed at each connection level for limiting overall b/w usage and starts dropping older messages if the connection becomes non-writable due to higher b/w usage.</p>\n\n\n\n<h5 class=\"wp-block-heading\">Security</h5>\n\n\n\n<p class=\"wp-block-paragraph\">For connections from the web apps, since the Auth token needs to be sent as query params and can get logged in intermediate paths, Bolt enforces a single token use policy. If the token is used to re-initiate a connection, bolt forcefully disconnects in the websocket upgrade path itself.</p>\n\n\n\n<p class=\"wp-block-paragraph\">As these web socket connections are long running, to ensure that the user remains authenticated over the connection lifecycle, we have a lease based auth renewal flow performed on the same connection. Bolt notifies the app to re-generate the auth token at regular intervals before the expiry. If the app fails to regenerate and pass the new lease token, Bolt forcefully disconnects.</p>\n\n\n\n<h2 class=\"wp-block-heading\">Load Testing</h2>\n\n\n\n<p class=\"wp-block-paragraph\">To ensure our system stays stable when a million users connect at once, we need to test it using real-world scenarios to find any weak spots. We can do this by simulating how people actually use the app, such as connecting and disconnecting at different speeds or changing their topic subscriptions, which alters how much data the servers need to handle. We also need to include basic background system checks and sudden spikes in high traffic to ensure the system can handle the stress.&nbsp;</p>\n\n\n\n<p class=\"wp-block-paragraph\">We built a distributed load testing system with a single control plane that could distribute the load test plans over a cluster of machines used to create these connections. The test plan consisted of specs such as connection ramp up, user traffic generation, and then disconnections and allowed us to test the system under various loads. The system also aggregates system and app performance metrics across the nodes such as the receive rate, message latencies, connection creation rates and failures, file descriptor creations, send and receive buffers behaviors and so on.&nbsp;</p>\n\n\n\n<h2 class=\"wp-block-heading\">Current Scale</h2>\n\n\n\n<h5 class=\"wp-block-heading\">Concurrent connections</h5>\n\n\n\n<p class=\"wp-block-paragraph\">This essentially represents the number of users interacting concurrently with the app and we usually peak around 1.6 to 2M concurrent connections during high traffic periods.&nbsp;</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-13612 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:41.796875%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAAsSAAALEgHS3X78AAABv0lEQVR42h3N22/SYAAF8D7Bd4cmDGj7FUgLLdDJ1A3dFp2bMrqOXii0A5FLBOYuxIeZzO3BmLjsD7ea/HJyns4RtqidI91EntoSc3bNWbu+aBuLQ2t1YK7eNdbvzcuDyrJjbU6M6zqIGqmomYqt1EVCyGFbzfnlrSBPziR6zjOumvFKzC+zoEz9Kg0NOqjh0CADAw8sENfTQ/O/pAi6HOnSsKbEBXquMFehvQSnnko8DYcV5O/giYrcOow06O/BmYUudBg0YVQFfWFbm+rFWJciToJ9subU38crjYWv0PQl/rKLZsfoKvn8CK5rqG+DTQuN22C+B6dl2BNa+qypTnghOEI3n/HvHTL7Cp7/JXw6Qt8i+ODBHx14uwR/3qLFVfr5DZyv00/H4FKGtmAUR6oYGvmRTe8C/PCB3I7Ir5PMZogeO3jjobsBu3fw9wG878LNGD+espsY/DwEiwL4JEi0r7CwVV7UixOFBJz0tVxkyRMZuyXic9xrSLEmBjJyFORURLdZHMqgq4ouF3tCSRq3asvX1eWLyrwkDktiqGaTOU/N+jzr8awrM0dhZzzjKBlbZl2JnsqkY6phVQn+AjWAXPzbJBPnAAAAAElFTkSuQmCC\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/3d355cff76b8c98a34bc0e30b06c8243/85b06/Bolt-REVISED_Artboard-6-copy-5.png 256w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/bc282/Bolt-REVISED_Artboard-6-copy-5.png 512w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/f1720/Bolt-REVISED_Artboard-6-copy-5.png 1024w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/dabea/Bolt-REVISED_Artboard-6-copy-5.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/3d355cff76b8c98a34bc0e30b06c8243/85b06/Bolt-REVISED_Artboard-6-copy-5.png 256w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/bc282/Bolt-REVISED_Artboard-6-copy-5.png 512w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/f1720/Bolt-REVISED_Artboard-6-copy-5.png 1024w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/dabea/Bolt-REVISED_Artboard-6-copy-5.png 1080w\" src=\"/static/3d355cff76b8c98a34bc0e30b06c8243/f1720/Bolt-REVISED_Artboard-6-copy-5.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/3d355cff76b8c98a34bc0e30b06c8243/85b06/Bolt-REVISED_Artboard-6-copy-5.png 256w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/bc282/Bolt-REVISED_Artboard-6-copy-5.png 512w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/f1720/Bolt-REVISED_Artboard-6-copy-5.png 1024w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/dabea/Bolt-REVISED_Artboard-6-copy-5.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/3d355cff76b8c98a34bc0e30b06c8243/85b06/Bolt-REVISED_Artboard-6-copy-5.png 256w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/bc282/Bolt-REVISED_Artboard-6-copy-5.png 512w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/f1720/Bolt-REVISED_Artboard-6-copy-5.png 1024w,\n/static/3d355cff76b8c98a34bc0e30b06c8243/dabea/Bolt-REVISED_Artboard-6-copy-5.png 1080w\" src=\"/static/3d355cff76b8c98a34bc0e30b06c8243/f1720/Bolt-REVISED_Artboard-6-copy-5.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span></figure>\n\n\n\n<h5 class=\"wp-block-heading\">Incoming connection rate</h5>\n\n\n\n<p class=\"wp-block-paragraph\">This is the rate at which devices create concurrent connections to Bolt. We hit a peak of <strong>~</strong> 35k connections/second and this&nbsp; is usually between 6-8PM when there is a surge in concurrent transactions.&nbsp;</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-13624 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:41.796875%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAAsSAAALEgHS3X78AAABvklEQVR42h3R7W/SUBQG8H6yvfeetmA2Br0thbW0FLRbRDfNnJsyKV1LoZTxNsYGTrZ0xkQTJfugydQ/3KvJL8+35yQnD7chepuSl2PA0x6HDediv7546SxeVZf75uKofvPauj4wrpu19K11+wRG1UeDGj+s/8fl5dNNaOegvSX6eTilUqjJHV2OdJHpGmJsQt8kcQX6Fk4cYVAVEpv/p8onnK0NTZqYhQErK1JQgECBQIWOSsIy6eo4cvFEw4GNkjKKGmhWx2fbQsSumHyPc4oTWxtZdEihsycuVTF6AYuyFLsw3SHnu2T2hqwqJD5GNybuvUepS0YNdP4czXQUcK5x4aiTEu0fotsx+enC7Ar93oHZJfp1iFcJXnfw1yZOF8LDHp6v+D8sP/APx8JHBXmcrUzUTGzlxm340iPrI0hH8OOdfDfA9yfkE2v2xe8++Zygby10N8X3LTEdCusD4WpLaHKKHFM5dvW5U5hS6GkQGxuDujKlJCxCl33u5IfbmS7Fvor9cjas5ROKWmwXNRtwxfzYrSyfVZZPS3M9m2jZWM30qBRpGSZkFMmnkq/KPpU9RWoVxBOmWuobSvQXGN5c8RFDSOgAAAAASUVORK5CYII=\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/79abb4db5586b3e9988be65334d0725e/85b06/Bolt-REVISED_Artboard-6-copy-6.png 256w,\n/static/79abb4db5586b3e9988be65334d0725e/bc282/Bolt-REVISED_Artboard-6-copy-6.png 512w,\n/static/79abb4db5586b3e9988be65334d0725e/f1720/Bolt-REVISED_Artboard-6-copy-6.png 1024w,\n/static/79abb4db5586b3e9988be65334d0725e/dabea/Bolt-REVISED_Artboard-6-copy-6.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/79abb4db5586b3e9988be65334d0725e/85b06/Bolt-REVISED_Artboard-6-copy-6.png 256w,\n/static/79abb4db5586b3e9988be65334d0725e/bc282/Bolt-REVISED_Artboard-6-copy-6.png 512w,\n/static/79abb4db5586b3e9988be65334d0725e/f1720/Bolt-REVISED_Artboard-6-copy-6.png 1024w,\n/static/79abb4db5586b3e9988be65334d0725e/dabea/Bolt-REVISED_Artboard-6-copy-6.png 1080w\" src=\"/static/79abb4db5586b3e9988be65334d0725e/f1720/Bolt-REVISED_Artboard-6-copy-6.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/79abb4db5586b3e9988be65334d0725e/85b06/Bolt-REVISED_Artboard-6-copy-6.png 256w,\n/static/79abb4db5586b3e9988be65334d0725e/bc282/Bolt-REVISED_Artboard-6-copy-6.png 512w,\n/static/79abb4db5586b3e9988be65334d0725e/f1720/Bolt-REVISED_Artboard-6-copy-6.png 1024w,\n/static/79abb4db5586b3e9988be65334d0725e/dabea/Bolt-REVISED_Artboard-6-copy-6.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/79abb4db5586b3e9988be65334d0725e/85b06/Bolt-REVISED_Artboard-6-copy-6.png 256w,\n/static/79abb4db5586b3e9988be65334d0725e/bc282/Bolt-REVISED_Artboard-6-copy-6.png 512w,\n/static/79abb4db5586b3e9988be65334d0725e/f1720/Bolt-REVISED_Artboard-6-copy-6.png 1024w,\n/static/79abb4db5586b3e9988be65334d0725e/dabea/Bolt-REVISED_Artboard-6-copy-6.png 1080w\" src=\"/static/79abb4db5586b3e9988be65334d0725e/f1720/Bolt-REVISED_Artboard-6-copy-6.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span></figure>\n\n\n\n<h5 class=\"wp-block-heading\">Egress Rate</h5>\n\n\n\n<p class=\"wp-block-paragraph\">This is the rate at which the system pushes messages on the connections. This peaks to ~75K messages per second.</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"wp-image-13600 inline-gatsby-image-wrapper gatsby-image-wrapper\" style=\"position:relative;overflow:hidden;max-width:100%;width:1024px\" data-reactroot=\"\"><span aria-hidden=\"true\" style=\"width:100%;padding-bottom:41.796875%\"></span><img aria-hidden=\"true\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAAsSAAALEgHS3X78AAABv0lEQVR42g3Ma2/SUACA4X6SnltLl41BTwulhdIVNhYyotskzoBA6QXoBTbuQ8hwOqMxcXGJJhJ/uE2er+/LHJJ27Ih0UqQj8r26ubwoLd+Y68bp9sr4+NbYNErbS2XdKn9+r+8MNjxJRGYiKr8axRjxwC5IoSb6x7grcj056WZ5L8f3lRjX17hhgfOL2NdJYKDQALEgXhhsYCQCxlDG5fxdUYxS2KKcIxKHYkciroQcFQ1VODhFtzK04ywPvBqYmjBSQd8EYYEdMKYyiRXEUMLeJdlKnFfHK43za2hRQ3MND6/RpoTCJvikQ78LvlThuM7OL8AsB2ymos6q2kKhfgPsJuhPhUyXYH+O5iuwf43v62jZg99a8HHN/r2C9w+Jf3U42yT2N2ArgjZzpi7UVKinbnv4R4BebvDjhPz+wD+N4Ms7/GDD7wH3bOGvIfhpgac79KtJdiP2+ZpdHYMmoxxFkuCfKcuTzFTGgxweFg+jCp1S5OawJyPHzIw0oU+hJUErLzhmOqCgLR84NGkzcmZcLa5r+rqSX2SFICsM5eSA8q4seFLSlZK2yFkib1G+S/mOyLXTpJUhrVLWV9Pufyo/XcXL0rlnAAAAAElFTkSuQmCC\" alt=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition-delay:500ms\"/><picture><source srcSet=\"/static/0751ee6de74d4669457cf0ca04c1ff25/85b06/Bolt-REVISED_Artboard-6-copy-4.png 256w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/bc282/Bolt-REVISED_Artboard-6-copy-4.png 512w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/f1720/Bolt-REVISED_Artboard-6-copy-4.png 1024w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/dabea/Bolt-REVISED_Artboard-6-copy-4.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"/><img sizes=\"(max-width: 1024px) 100vw, 1024px\" srcSet=\"/static/0751ee6de74d4669457cf0ca04c1ff25/85b06/Bolt-REVISED_Artboard-6-copy-4.png 256w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/bc282/Bolt-REVISED_Artboard-6-copy-4.png 512w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/f1720/Bolt-REVISED_Artboard-6-copy-4.png 1024w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/dabea/Bolt-REVISED_Artboard-6-copy-4.png 1080w\" src=\"/static/0751ee6de74d4669457cf0ca04c1ff25/f1720/Bolt-REVISED_Artboard-6-copy-4.png\" alt=\"\" loading=\"eager\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transition:opacity 500ms\"/></picture><noscript><picture><source srcset=\"/static/0751ee6de74d4669457cf0ca04c1ff25/85b06/Bolt-REVISED_Artboard-6-copy-4.png 256w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/bc282/Bolt-REVISED_Artboard-6-copy-4.png 512w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/f1720/Bolt-REVISED_Artboard-6-copy-4.png 1024w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/dabea/Bolt-REVISED_Artboard-6-copy-4.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><img loading=\"eager\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"/static/0751ee6de74d4669457cf0ca04c1ff25/85b06/Bolt-REVISED_Artboard-6-copy-4.png 256w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/bc282/Bolt-REVISED_Artboard-6-copy-4.png 512w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/f1720/Bolt-REVISED_Artboard-6-copy-4.png 1024w,\n/static/0751ee6de74d4669457cf0ca04c1ff25/dabea/Bolt-REVISED_Artboard-6-copy-4.png 1080w\" src=\"/static/0751ee6de74d4669457cf0ca04c1ff25/f1720/Bolt-REVISED_Artboard-6-copy-4.png\" alt=\"\" style=\"position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center\"/></picture></noscript></span></figure>\n\n\n\n<h2 class=\"wp-block-heading\">Impact</h2>\n\n\n\n<p class=\"wp-block-paragraph\">Bolt was built as a platform and is being leveraged in PhonePe for optimizing some of the following problems:</p>\n\n\n\n<h5 class=\"wp-block-heading\">Faster overall Transactions</h5>\n\n\n\n<p class=\"wp-block-paragraph\">During a payment transaction on the PhonePe app, the app polls for the transaction state from a central transaction store. A transaction may involve multiple internal and external parties having different levels of responsiveness during the day which directly impacts the e2e transaction time. At scale, this results in waste of resources during the polls both in the app and at the backend.</p>\n\n\n\n<p class=\"wp-block-paragraph\">We leveraged bolt push to notify the app to pull the transaction state whenever there was a state change in the transaction store combined with delaying polls at the app-level if the app was connected to Bolt. This led to a decrease in end-end transaction completion time by around 40% at p90.&nbsp;</p>\n\n\n\n<h5 class=\"wp-block-heading\">Mailbox</h5>\n\n\n\n<p class=\"wp-block-paragraph\">PhonePe’s API gateway has the capability to decompose certain backend API interactions that are inherently latent into a forward API call + a series of status calls instead of a single API call that spans tens of seconds. Once the backend service has generated the response, it notifies the gateway. The gateway acts as a mediator for handling the intermediate status calls and returns the final response to the app once available.</p>\n\n\n\n<p class=\"wp-block-paragraph\">To optimize the latency of e2e mailbox calls, once the API gateway receives the response from upstream services, it initiates a bolt push of the final response as well resulting in a faster response resolution and reduced latencies.</p>\n\n\n\n<p class=\"wp-block-paragraph\">As a result of a poll to push based optimization, the latency of mailbox resolution calls dropped by 75% at p90.</p>\n","date":"25 November, 2026","uri":"/bolt-bi-directional-realtime-streaming-platform/","categories":{"nodes":[{"name":"Engineering","slug":"engineering"}]},"author":{"node":{"name":"akankshamishra","slug":"akankshamishra","description":null}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAAAsSAAALEgHS3X78AAADDElEQVR42iXN209ScQAA4PNScM75Xc7hZsdA4ACBSZaAGKQoUHLwSIBclUARNKQrFbSszMy17LLWU2vZWq22tprZUtftoZcuWz300NpqvbTVm1uth9Zb2foDvn3EKtQsRXaIXCzyKJF/DQpooKiDYROMr4f9G0GuFRTdYMxL7w/Q1e3k0T5yMkmdHqBmMtQ5gkROgFwIbWFAhxL6ORg0Kvr0KGr8h9PNIOsABTco+eBBAZ7oMs6I3Kmk5FSaOtNPzRAYdcqxX8smzVxBK4+vYD0b1cF/2AJTVphpoQeddLGDLvvoyjZ8WATjEXIiRk4lqWlCCQU1Gx3adnVXeMHBV+sogWdjetRnQAkzSjehTIss78CjW2R7OlFlK13tQUdDeDICJ6PUBLEWxdQ4YeV2bmrYa5DvqIe9WsV2DRIbpAGttNsq6x/HD6dUT3dLb+/pejR96MuE7+Nk4VtJeByUVIl1MGfGgzqcMsizDWyfZ9PhijhfTCwK8Udt9gdB7u6VVW+fJ7+fZZ/UXK9uXPpzpfz78oU/5cRLv2QvYddWHLKSUTboaKhZTSMTvhdvzv+aLX/K55YTvT8HlR/GqWfHuadjsltZ/mEl+Pmg+Kk69DXvW/JQJaLResjCFG3cbj0zYOHzRxyvF3LLJ23vRoXlguNHkXlf6VoqB+9kvLMD7uvRDdeiTTfStnuplpsuNEKYQKFJPtahq+rYrEYebzXVBkx3I9a5bvsDb/2dAL55PLU4VVqo9d/fF5kvCfPD3vnhzsfp1tt2lCOMeJRHeTXMqGGKQzEVIyrXBBi5hwZOEtpYtn0zX+kyH/OaT/gsU8L6s6L1YnjjZcFyphmkCQMe4fGwHufVimydLKZAvZwqhBgfYDwAtwPspsFmTLvraK+BDmnoAE+LRjpkBpFGGCN4XORxwcCMqrUlZV1CBoNyRWBFktglxU4SOxHjJrHNq6odYOY0oFsHe4wwZIJhM4yuzEUdHlLjDAfjKhRmsQAZP4nbJbhtNXZIsJ3GToja1rKCiY3Xw61aGORh73//Fxl2zMLZMFmNAAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/16d3c4a057cabefe243d1c8623aaddcd/bc8e0/Bolt-REVISED-11.png","srcSet":"/static/16d3c4a057cabefe243d1c8623aaddcd/8ac63/Bolt-REVISED-11.png 200w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/3891b/Bolt-REVISED-11.png 400w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/bc8e0/Bolt-REVISED-11.png 800w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/6c305/Bolt-REVISED-11.png 858w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Praveen Kumar"}},"moreCategoryBlogs":{"nodes":[{"id":"cG9zdDoxMzIyOA==","excerpt":"<p>When we started building PhonePe Invest, PhonePe’s stockbroking and mutual funds distribution platform, we needed a system that could power real-time features such as charts, prices, order updates, notifications, and so on. Here are some of the key use cases we wanted the platform to solve: Problem Characteristics &amp; Challenges Following are some of the&hellip; <a class=\"more-link\" href=\"/bolt-bi-directional-realtime-streaming-platform/\">Continue reading <span class=\"screen-reader-text\">Bolt: Bi-directional Realtime Streaming Platform</span></a></p>\n","uri":"/bolt-bi-directional-realtime-streaming-platform/","date":"November 25, 2026","title":"Bolt: Bi-directional Realtime Streaming Platform","categories":{"nodes":[{"slug":"engineering","id":"dGVybTo3","name":"Engineering"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAAAsSAAALEgHS3X78AAADDElEQVR42iXN209ScQAA4PNScM75Xc7hZsdA4ACBSZaAGKQoUHLwSIBclUARNKQrFbSszMy17LLWU2vZWq22tprZUtftoZcuWz300NpqvbTVm1uth9Zb2foDvn3EKtQsRXaIXCzyKJF/DQpooKiDYROMr4f9G0GuFRTdYMxL7w/Q1e3k0T5yMkmdHqBmMtQ5gkROgFwIbWFAhxL6ORg0Kvr0KGr8h9PNIOsABTco+eBBAZ7oMs6I3Kmk5FSaOtNPzRAYdcqxX8smzVxBK4+vYD0b1cF/2AJTVphpoQeddLGDLvvoyjZ8WATjEXIiRk4lqWlCCQU1Gx3adnVXeMHBV+sogWdjetRnQAkzSjehTIss78CjW2R7OlFlK13tQUdDeDICJ6PUBLEWxdQ4YeV2bmrYa5DvqIe9WsV2DRIbpAGttNsq6x/HD6dUT3dLb+/pejR96MuE7+Nk4VtJeByUVIl1MGfGgzqcMsizDWyfZ9PhijhfTCwK8Udt9gdB7u6VVW+fJ7+fZZ/UXK9uXPpzpfz78oU/5cRLv2QvYddWHLKSUTboaKhZTSMTvhdvzv+aLX/K55YTvT8HlR/GqWfHuadjsltZ/mEl+Pmg+Kk69DXvW/JQJaLResjCFG3cbj0zYOHzRxyvF3LLJ23vRoXlguNHkXlf6VoqB+9kvLMD7uvRDdeiTTfStnuplpsuNEKYQKFJPtahq+rYrEYebzXVBkx3I9a5bvsDb/2dAL55PLU4VVqo9d/fF5kvCfPD3vnhzsfp1tt2lCOMeJRHeTXMqGGKQzEVIyrXBBi5hwZOEtpYtn0zX+kyH/OaT/gsU8L6s6L1YnjjZcFyphmkCQMe4fGwHufVimydLKZAvZwqhBgfYDwAtwPspsFmTLvraK+BDmnoAE+LRjpkBpFGGCN4XORxwcCMqrUlZV1CBoNyRWBFktglxU4SOxHjJrHNq6odYOY0oFsHe4wwZIJhM4yuzEUdHlLjDAfjKhRmsQAZP4nbJbhtNXZIsJ3GToja1rKCiY3Xw61aGORh73//Fxl2zMLZMFmNAAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/16d3c4a057cabefe243d1c8623aaddcd/bc8e0/Bolt-REVISED-11.png","srcSet":"/static/16d3c4a057cabefe243d1c8623aaddcd/8ac63/Bolt-REVISED-11.png 200w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/3891b/Bolt-REVISED-11.png 400w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/bc8e0/Bolt-REVISED-11.png 800w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/6c305/Bolt-REVISED-11.png 858w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Praveen Kumar"}},{"id":"cG9zdDoxMjc5MA==","excerpt":"<p>Over the past decade, PhonePe has expanded rapidly to serve over 730 million registered users and more than 160 million daily active users. Operating at this immense scale continuously reveals unique distributed systems challenges, particularly around workload isolation and handling sudden traffic spikes. Whenever off-the-shelf architectures fell short of our operational demands, we built focused&hellip; <a class=\"more-link\" href=\"/ignismq-running-thousands-of-ephemeral-isolated-queues-on-aerospike-at-scale/\">Continue reading <span class=\"screen-reader-text\">IgnisMQ: Running Thousands of Ephemeral, Isolated Queues on Aerospike at Scale</span></a></p>\n","uri":"/ignismq-running-thousands-of-ephemeral-isolated-queues-on-aerospike-at-scale/","date":"November 20, 2026","title":"IgnisMQ: Running Thousands of Ephemeral, Isolated Queues on Aerospike at Scale","categories":{"nodes":[{"slug":"engineering","id":"dGVybTo3","name":"Engineering"},{"slug":"open-source","id":"dGVybToyMg==","name":"Open Source"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAABcRAAAXEQHKJvM/AAADJElEQVR42gEZA+b8AAQQKgYLKAoHKw4IMREPOhUSQRkSRR4TSyQUUSkVWS4VXzMWZDcUZz0MaEAObUYWd0wZf04ZgVIZhVUaiAAGDywpXXwjjpQVe3cUGkIWEUEiF1chFFElFFMrFlwvF2EzEmM3H2s2WIhEUZVJJoFIFnlSHYZRIYdRGYQACA0vRJm5R+rbG+a3E1lsGAxEIBZQJRVWKBRXLhZgMhhjNg5iLmyKMuXDWsTfSz2QQw9yWCCNTh6CTBh+AAsONDd7nDXDviDUtCx1lC0bayYXXiUUUisUWzAWYzUXZz4adiqboi3hxFK01VJFk0cbdEAYckQXdUYZeAAOETwSF0ITGUYvW4WQq/5XO6QzGn4+IIUvFmMzFmNEHoVJIpA6S4k8Uok1K3GzkeKrft83E2c+F24+F28AERJEExJHEQxCIShfUlmlOiZ4LBZoQCCJbB2tihPGUxqTNBloMQ9eLw1aKw1YbVGda0mdMBRgNRZkNRZlABQTSxYUTRcWUBkRThcLSSIWWCkWXS0VXXEqtIsfzlYZmTweezEYZSwXXioVWh4MTSAOTysXWywWWywVWgAXE0wWEUoXEkwbFlIfElEhClMtF2s6HH43GG01FmQ6G3hKI5s/H4gyHHEqGWEpE1cmD08gCkchD0sjFFAAGBJNHxxeIRhnFwlMGiVWQnCnRzOhLhVrKRVbKhVdKRRZLRhlMxx4LCBvIoGVLKaqNoWiM12KJi9gGRFFABsTVB0WWCUqaDAtczZRhVShxjcqfCAQUicWWyYUWCQTViIXVSIYVyAbXhigmxTuvC3aw0vP3jp2nxAJNQAeFVobCU82Y5d4qvV3YdYgElodElMgFVUgFFQfFFIeFFAcFE4ZFEsWD0UWf4IV5rc91cNYzt05dp0ICCwAHxZcHAtTOmOYeqjweWTSHxNZHBNVHBNSHBNQGxNOGRJMFxJIFBNGEhBAEBhBFKyVJs25QLrNMm2TBAgoAB8UXB4SWiUlZy4wdy8jcB0TVhsTUhoTUBgTTRgSSxUSSBQSRBESQRATQAwOOg4dPw0oRQ4lQwscOgIPLH2u0ecYI66IAAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/29e8b0f54e7a7c7b44bb297bbf3558d2/bc8e0/Aerospike-icon.png","srcSet":"/static/29e8b0f54e7a7c7b44bb297bbf3558d2/8ac63/Aerospike-icon.png 200w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/3891b/Aerospike-icon.png 400w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/bc8e0/Aerospike-icon.png 800w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/6050d/Aerospike-icon.png 1200w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/00405/Aerospike-icon.png 1600w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/3e197/Aerospike-icon.png 1788w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Shantanu Tiwari"}},{"id":"cG9zdDoxMTc4Mg==","excerpt":"<p>Introduction Android&#8217;s native RecyclerView is exceptionally efficient at handling large datasets through item recycling, but it lacks native support for spatial interactions like pinch-to-zoom and canvas-level panning. For complex layouts—such as interactive retail grids or detailed dashboards—smooth zooming and panning are essential to the user experience. To address this limitation, we engineered a custom ZoomableRecyclerView&hellip; <a class=\"more-link\" href=\"/zoomable-recyclerview-enabling-pinch-to-zoom-and-panning-in-android-recyclerviews/\">Continue reading <span class=\"screen-reader-text\">Zoomable RecyclerView: Enabling Pinch-to-Zoom and Panning in Android RecyclerViews</span></a></p>\n","uri":"/zoomable-recyclerview-enabling-pinch-to-zoom-and-panning-in-android-recyclerviews/","date":"September 08, 2026","title":"Zoomable RecyclerView: Enabling Pinch-to-Zoom and Panning in Android RecyclerViews","categories":{"nodes":[{"slug":"engineering","id":"dGVybTo3","name":"Engineering"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC70lEQVR42iXR109TcRTA8f4vjuCAe87vDtuKaEHAhYOYmOiDvvpmJI5Eg4AIMcYVY5DRSsXBUCLEKIgxEYpIw6zILeW2peOWhq5b2mJbSn8WTL7JefrknOSoAH5sNUzQLLBzBCUAmeAKy4Z4Lszzm3FsiGAAQUZwIM4jTgKM5JTqP0YcJzhXxNvVnA9JWBAiWo2i1cZy7dfGNJo4z8cQVwECAC5CRI6dQBj+j00EZwCkAmaZsGG1OnKgUNHpwkfK7RXHbOXlC8UlYnmZreywVa32AhPgOefRI1aWjKm21poRRQY8LAlp1ZFDB8OHS6JnTjo6XkQGe1MGffhZk394KCHOpBvqnLt3L3Osf5+wSMhkDo8QnEaQEP0cpwjqeNGheKEuffqM83tf6te3zIyZWmc3pPlsLEBfGTx79ng4NgzgIGjJ4dHcQHQWMOEibeDSKevl89LjqxN1V0yfOpNjn//O/sqKkxm7NRuVqbHNW1Ag87yC4CE4r0IYY8kcgpuBSH9NV6qnNt7zMPupMfHxycTXkN9HFT/1OOKiJRkJUH2LC8AjCNGtj4gqAmMEfm/PW7l5wZT6cCf07kGiq+7FDVN/fSf9+SaTptl1Gg0qLuvfwBJ9qbczjEsQVrewVZW/d1Snm2X3OT/X6KNdNcG3jY6mhotnfRWVS8sDA6lAyN9nWbfZvHYqL9CXbW6G8fB8brN382yGGdFwlnNlZntbvc9Yr7yrHX3UVnEi+rhqODHUmYkqq+JKJrbmk+iKRI0GOT9f5tgIogtxTkXIj215ltYqY/D1LZfh7vKrXI1iy/NkT3Vk6EMyQdfT2XSS+t0bioe2t3rzdnkJGwS0A8yodu01VZYOLDZXO/XVS/pa2Vgb777tM97vuNX7pTs+MUoXpjakPxt/pjNBH21t8u7Y6VZzsoabBxjfxO3XnroNNxaaq5cMdxZb7rVff3+8xFtc6h7sXjP1rU39zFrNGUnM+Kdi+mb39h02DS8V8lMApn/5ZcMwVRrcXAAAAABJRU5ErkJggg==","aspectRatio":1.5873015873015872,"src":"/static/b19c886c47692230b76a1bd769d3e1dd/bc8e0/Tech-Blog_Opt1-2-scaled.png","srcSet":"/static/b19c886c47692230b76a1bd769d3e1dd/8ac63/Tech-Blog_Opt1-2-scaled.png 200w,\n/static/b19c886c47692230b76a1bd769d3e1dd/3891b/Tech-Blog_Opt1-2-scaled.png 400w,\n/static/b19c886c47692230b76a1bd769d3e1dd/bc8e0/Tech-Blog_Opt1-2-scaled.png 800w,\n/static/b19c886c47692230b76a1bd769d3e1dd/6050d/Tech-Blog_Opt1-2-scaled.png 1200w,\n/static/b19c886c47692230b76a1bd769d3e1dd/00405/Tech-Blog_Opt1-2-scaled.png 1600w,\n/static/b19c886c47692230b76a1bd769d3e1dd/a76e0/Tech-Blog_Opt1-2-scaled.png 2560w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Akhil Elango"}},{"id":"cG9zdDoxMDg4Mg==","excerpt":"<p>When processing billions of transactions in a system as large as PhonePe, underlying databases go through constant querying, repairs and management. While a set of these tasks are automated, some are managed by human users. This leaves a potential risk of unauthorised/untracked human activities being executed in the databases. PhonePe addresses this risk with a&hellip; <a class=\"more-link\" href=\"/hosho-a-database-activity-monitoring-tool/\">Continue reading <span class=\"screen-reader-text\">Hoshō: A Database Activity Monitoring Tool</span></a></p>\n","uri":"/hosho-a-database-activity-monitoring-tool/","date":"May 15, 2026","title":"Hoshō: A Database Activity Monitoring Tool","categories":{"nodes":[{"slug":"engineering","id":"dGVybTo3","name":"Engineering"}]},"author":{"node":{"id":"dXNlcjoyMg==","name":"Muktha Tavane"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAC4jAAAuIwF4pT92AAADqElEQVR42kWRW1AUdBSH18xERTCYoFLQhExwHMLAQQhwhhHFhWV3WeSuMpSRhBdwYAFX1EEgFIhrJZgND/jQQ4MOAioNZWg0TQnLLiwXWS6i3JeLrEb29c9ppoffnPP0zfc7R1JR/YzLlYt8W7pIaf5TLqlNXIifQLN/FLXXEKku/Rx/p5+PbQ0cWqUjenknquVawkRUFp3IV4us6iR2nRaZhRZJRdX/wJILCxSkzpATN44m8BEZuwb5UuxNZycp3tPPoTX6l0ClRMtBWz2l8cPkRY6QtXeQNE8DIZY6JJXVZiqumCkpW6Tw3Dz5SdOcV41xevcwp9yM1CaPYbzWwzdhBmJXdhH1qhalsAtfoSXGTk+kfRfhIrJ1eqRrBLAib4LycjNF2fNcTJ+l8OgUZ0TddA9R972HqF37KPNr57O3uohbqSPiv7pykaBXOgh6TUwL3UvYfis9ki8KFig5a6IwY47PhV1OxLiwG+GE0wCJNj0k2fZyxKaPw6v1RCzrQCkg/xoqLfWEWuuR23Qjt+0mxEbstsKwSDNH4aePyU02kXd4SjxjjMxdI5wWht9lzdKQb6Yp9xl1ajNX4+aIF8+RLdNywL4b5Rsib/ci39BHsL2egxs7kOSlirsdm6cwYZpsxQRnAp+Q6jrEpeAn/HLtBY15f1GXtsT3yUvcVsPJrUakK8Sn7XpQvGlA7tiLYr0OhYO45TYjkoJPZsmKNHFeMUl6wDiZH46S5GhE88Ejvt43R4XvFLXRM9SlzFOfZubo5gHCREWVQw9Su26kG3sJ2dRNqHMPgc79SEqPL3BZ85SixFmKoyfJ8RniyPpBipXjtBQt8INmgs5aE5OGRVj6m9zwUYIsuwgToFCnfiJdB4hxHyLQxYhi5zCS/MQZrmSbKEuaoiBqjCz/Ea5HT/Nr1iJtVX/SVv6c3756zoOaJdqqX1B0zsypxGlUWwxInQ2Ebu9D5v4QlZeRxIAhJHHe94nyEHFrJdyphfjtd6k5+ZiaExNUpUxSqZ6hPN1ESaqJiynTlGbOcDVjEtnWZnw23MTPuQlvl1v4uN5i9/t3BNDrHjGerUS73SViSwsqx2YSdt7nI9kD5Kp2dhz4HY+oPwiP6+RYjA61vJ0Ej5/xFzDfTQ34vduI0v1HIqT38PK6jSTWo5WYHa1EbfuJCOcWwhyakb3eRKhVA7K1DQRb3WSfdT17rerZs/YG/tbX8ba5ga9DA76bG/EVdgHuzQR6t+DjeYd/AMRumnO2r9qKAAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/fd5350b7061977085d7c523b6f5a309f/bc8e0/Hosho-Final-Header-Icon-scaled.png","srcSet":"/static/fd5350b7061977085d7c523b6f5a309f/8ac63/Hosho-Final-Header-Icon-scaled.png 200w,\n/static/fd5350b7061977085d7c523b6f5a309f/3891b/Hosho-Final-Header-Icon-scaled.png 400w,\n/static/fd5350b7061977085d7c523b6f5a309f/bc8e0/Hosho-Final-Header-Icon-scaled.png 800w,\n/static/fd5350b7061977085d7c523b6f5a309f/6050d/Hosho-Final-Header-Icon-scaled.png 1200w,\n/static/fd5350b7061977085d7c523b6f5a309f/00405/Hosho-Final-Header-Icon-scaled.png 1600w,\n/static/fd5350b7061977085d7c523b6f5a309f/a76e0/Hosho-Final-Header-Icon-scaled.png 2560w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Pratik Anurag, Manisha C, Shubham Sharma, and Krishna Prasanth"}},{"id":"cG9zdDoxMDczOA==","excerpt":"<p>Infrastructure as Code (IaC) is often treated as the holy grail of Site Reliability Engineering (SRE). We use tools like SaltStack and Ansible, alongside golden images and post-install scripts, to define our ideal state. But here is the hidden secret of infrastructure engineering: IaC dictates how things should be, but it doesn&#8217;t guarantee what actually&hellip; <a class=\"more-link\" href=\"/beyond-iac-engineering-a-solution-to-guarantee-what-actually-is-in-production/\">Continue reading <span class=\"screen-reader-text\">Beyond IaC: Engineering a solution to Guarantee What Actually Is in Production</span></a></p>\n","uri":"/beyond-iac-engineering-a-solution-to-guarantee-what-actually-is-in-production/","date":"April 17, 2026","title":"Beyond IaC: Engineering a solution to Guarantee What Actually Is in Production","categories":{"nodes":[{"slug":"engineering","id":"dGVybTo3","name":"Engineering"}]},"author":{"node":{"id":"dXNlcjoyMg==","name":"Muktha Tavane"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAAC4jAAAuIwF4pT92AAAC80lEQVR42i2S60sUYRTG5/+ob30w3Z2Z97zzrjvu7Ozqru5a3i9kQWRYGkG3T0ZgBEGQkRFUaER2J8mCogsUed20csswddXSLE1T192Zd8fVXffWaMFzDocDD4fz8GMQ6tUF4BEEL8AIz08BmsPYL+AAIcF/EoQggB9z82aYxjAKMMDzvYB6Gb04rgfjD6LZx/M/LOYlEwmaiCJZVKv1v/SZmJRMpMiCH8O0gEeIMLBh5vkes+m9U/YBmmS5BbuoyhZVsqoWSXU6ab6LOhxUklWbTTWLCiZBjvvjcEwX7PQBvGMMxu7qyvGztUHgZ3k+cPZM2OuJebsSzRej5eWay01379KuX4i+fRB/3ho/ejBs5AJZ4pzNNgHwkUHII+AvRJhMS1u4cnk1QlP3W6PXLkVGe5Kv7sUP1YZ7niT6niTON0SuN0aHXqaO14W3py8IMIVhUP+5D8Mwy07LcmBxNnn50hoxqc5cergu3N2eGO5IdjxK7N+3kuemoqQ2nYm8vhsnZBmhnxiGdHO/iYwYDTMlxYp/LnnwgOZ00D1VWmGxdqtlfXEo1XQuUlyi6ZscBz1cE+5rT8hSENCMmDnKYPiA+GFDxi895Mmx+Mtn63pOhUWhpvORqc+pzqfxr13J0yfXiopC+fm07WrscXOMQ8sEz5hNowxrfGe3D7sLvm/bNn/sSJj6k99G4p/6YktTqfs31vfuW3l4I+brSr24He94kNDPVpWFjGyACDOAvjJG1pMjDrpt40Z2AZBSU63duRlpuxc9VR+uqNB2V61UVmr1J1ZbGqONDZGSwhBCCsfOGgw+jvvEAPSy3ADLTQCeF0hANCuEKFaJ5ubS0pJQWWlI7/pstVFzlpKZqQBeLnMMiumdW7a+YTbZ7NcDJ8JPCQIEFJu8gYfLRfPdoR3ukNtFC3ZQdx61SqpOHoLFbMu4TAYz0rs3zciDkJfgcQn/RpxfIEqWqMhW1W5Xs+2qzb6BlyVLFbBO+BLGv3h+jENeDJ6/+9mUb2IXpW0AAAAASUVORK5CYII=","aspectRatio":1.5873015873015872,"src":"/static/63436876543243cc7eb59bd61c85f7c1/bc8e0/Beyond-IaC-HEADER-scaled.png","srcSet":"/static/63436876543243cc7eb59bd61c85f7c1/8ac63/Beyond-IaC-HEADER-scaled.png 200w,\n/static/63436876543243cc7eb59bd61c85f7c1/3891b/Beyond-IaC-HEADER-scaled.png 400w,\n/static/63436876543243cc7eb59bd61c85f7c1/bc8e0/Beyond-IaC-HEADER-scaled.png 800w,\n/static/63436876543243cc7eb59bd61c85f7c1/6050d/Beyond-IaC-HEADER-scaled.png 1200w,\n/static/63436876543243cc7eb59bd61c85f7c1/00405/Beyond-IaC-HEADER-scaled.png 1600w,\n/static/63436876543243cc7eb59bd61c85f7c1/a76e0/Beyond-IaC-HEADER-scaled.png 2560w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Aniruddha Thombre, Udeshya Giri, Shivam Pansy Satyendra Tyagi, and Ghanshyam Gupta"}}]},"moreBlogs":{"nodes":[{"id":"cG9zdDoxMzIyOA==","excerpt":"<p>When we started building PhonePe Invest, PhonePe’s stockbroking and mutual funds distribution platform, we needed a system that could power real-time features such as charts, prices, order updates, notifications, and so on. Here are some of the key use cases we wanted the platform to solve: Problem Characteristics &amp; Challenges Following are some of the&hellip; <a class=\"more-link\" href=\"/bolt-bi-directional-realtime-streaming-platform/\">Continue reading <span class=\"screen-reader-text\">Bolt: Bi-directional Realtime Streaming Platform</span></a></p>\n","uri":"/bolt-bi-directional-realtime-streaming-platform/","date":"November 25, 2026","title":"Bolt: Bi-directional Realtime Streaming Platform","categories":{"nodes":[{"slug":"engineering","id":"dGVybTo3","name":"Engineering"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAAAsSAAALEgHS3X78AAADDElEQVR42iXN209ScQAA4PNScM75Xc7hZsdA4ACBSZaAGKQoUHLwSIBclUARNKQrFbSszMy17LLWU2vZWq22tprZUtftoZcuWz300NpqvbTVm1uth9Zb2foDvn3EKtQsRXaIXCzyKJF/DQpooKiDYROMr4f9G0GuFRTdYMxL7w/Q1e3k0T5yMkmdHqBmMtQ5gkROgFwIbWFAhxL6ORg0Kvr0KGr8h9PNIOsABTco+eBBAZ7oMs6I3Kmk5FSaOtNPzRAYdcqxX8smzVxBK4+vYD0b1cF/2AJTVphpoQeddLGDLvvoyjZ8WATjEXIiRk4lqWlCCQU1Gx3adnVXeMHBV+sogWdjetRnQAkzSjehTIss78CjW2R7OlFlK13tQUdDeDICJ6PUBLEWxdQ4YeV2bmrYa5DvqIe9WsV2DRIbpAGttNsq6x/HD6dUT3dLb+/pejR96MuE7+Nk4VtJeByUVIl1MGfGgzqcMsizDWyfZ9PhijhfTCwK8Udt9gdB7u6VVW+fJ7+fZZ/UXK9uXPpzpfz78oU/5cRLv2QvYddWHLKSUTboaKhZTSMTvhdvzv+aLX/K55YTvT8HlR/GqWfHuadjsltZ/mEl+Pmg+Kk69DXvW/JQJaLResjCFG3cbj0zYOHzRxyvF3LLJ23vRoXlguNHkXlf6VoqB+9kvLMD7uvRDdeiTTfStnuplpsuNEKYQKFJPtahq+rYrEYebzXVBkx3I9a5bvsDb/2dAL55PLU4VVqo9d/fF5kvCfPD3vnhzsfp1tt2lCOMeJRHeTXMqGGKQzEVIyrXBBi5hwZOEtpYtn0zX+kyH/OaT/gsU8L6s6L1YnjjZcFyphmkCQMe4fGwHufVimydLKZAvZwqhBgfYDwAtwPspsFmTLvraK+BDmnoAE+LRjpkBpFGGCN4XORxwcCMqrUlZV1CBoNyRWBFktglxU4SOxHjJrHNq6odYOY0oFsHe4wwZIJhM4yuzEUdHlLjDAfjKhRmsQAZP4nbJbhtNXZIsJ3GToja1rKCiY3Xw61aGORh73//Fxl2zMLZMFmNAAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/16d3c4a057cabefe243d1c8623aaddcd/bc8e0/Bolt-REVISED-11.png","srcSet":"/static/16d3c4a057cabefe243d1c8623aaddcd/8ac63/Bolt-REVISED-11.png 200w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/3891b/Bolt-REVISED-11.png 400w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/bc8e0/Bolt-REVISED-11.png 800w,\n/static/16d3c4a057cabefe243d1c8623aaddcd/6c305/Bolt-REVISED-11.png 858w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Praveen Kumar"}},{"id":"cG9zdDoxMjc5MA==","excerpt":"<p>Over the past decade, PhonePe has expanded rapidly to serve over 730 million registered users and more than 160 million daily active users. Operating at this immense scale continuously reveals unique distributed systems challenges, particularly around workload isolation and handling sudden traffic spikes. Whenever off-the-shelf architectures fell short of our operational demands, we built focused&hellip; <a class=\"more-link\" href=\"/ignismq-running-thousands-of-ephemeral-isolated-queues-on-aerospike-at-scale/\">Continue reading <span class=\"screen-reader-text\">IgnisMQ: Running Thousands of Ephemeral, Isolated Queues on Aerospike at Scale</span></a></p>\n","uri":"/ignismq-running-thousands-of-ephemeral-isolated-queues-on-aerospike-at-scale/","date":"November 20, 2026","title":"IgnisMQ: Running Thousands of Ephemeral, Isolated Queues on Aerospike at Scale","categories":{"nodes":[{"slug":"engineering","id":"dGVybTo3","name":"Engineering"},{"slug":"open-source","id":"dGVybToyMg==","name":"Open Source"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAABcRAAAXEQHKJvM/AAADJElEQVR42gEZA+b8AAQQKgYLKAoHKw4IMREPOhUSQRkSRR4TSyQUUSkVWS4VXzMWZDcUZz0MaEAObUYWd0wZf04ZgVIZhVUaiAAGDywpXXwjjpQVe3cUGkIWEUEiF1chFFElFFMrFlwvF2EzEmM3H2s2WIhEUZVJJoFIFnlSHYZRIYdRGYQACA0vRJm5R+rbG+a3E1lsGAxEIBZQJRVWKBRXLhZgMhhjNg5iLmyKMuXDWsTfSz2QQw9yWCCNTh6CTBh+AAsONDd7nDXDviDUtCx1lC0bayYXXiUUUisUWzAWYzUXZz4adiqboi3hxFK01VJFk0cbdEAYckQXdUYZeAAOETwSF0ITGUYvW4WQq/5XO6QzGn4+IIUvFmMzFmNEHoVJIpA6S4k8Uok1K3GzkeKrft83E2c+F24+F28AERJEExJHEQxCIShfUlmlOiZ4LBZoQCCJbB2tihPGUxqTNBloMQ9eLw1aKw1YbVGda0mdMBRgNRZkNRZlABQTSxYUTRcWUBkRThcLSSIWWCkWXS0VXXEqtIsfzlYZmTweezEYZSwXXioVWh4MTSAOTysXWywWWywVWgAXE0wWEUoXEkwbFlIfElEhClMtF2s6HH43GG01FmQ6G3hKI5s/H4gyHHEqGWEpE1cmD08gCkchD0sjFFAAGBJNHxxeIRhnFwlMGiVWQnCnRzOhLhVrKRVbKhVdKRRZLRhlMxx4LCBvIoGVLKaqNoWiM12KJi9gGRFFABsTVB0WWCUqaDAtczZRhVShxjcqfCAQUicWWyYUWCQTViIXVSIYVyAbXhigmxTuvC3aw0vP3jp2nxAJNQAeFVobCU82Y5d4qvV3YdYgElodElMgFVUgFFQfFFIeFFAcFE4ZFEsWD0UWf4IV5rc91cNYzt05dp0ICCwAHxZcHAtTOmOYeqjweWTSHxNZHBNVHBNSHBNQGxNOGRJMFxJIFBNGEhBAEBhBFKyVJs25QLrNMm2TBAgoAB8UXB4SWiUlZy4wdy8jcB0TVhsTUhoTUBgTTRgSSxUSSBQSRBESQRATQAwOOg4dPw0oRQ4lQwscOgIPLH2u0ecYI66IAAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/29e8b0f54e7a7c7b44bb297bbf3558d2/bc8e0/Aerospike-icon.png","srcSet":"/static/29e8b0f54e7a7c7b44bb297bbf3558d2/8ac63/Aerospike-icon.png 200w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/3891b/Aerospike-icon.png 400w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/bc8e0/Aerospike-icon.png 800w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/6050d/Aerospike-icon.png 1200w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/00405/Aerospike-icon.png 1600w,\n/static/29e8b0f54e7a7c7b44bb297bbf3558d2/3e197/Aerospike-icon.png 1788w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Shantanu Tiwari"}},{"id":"cG9zdDoxMjcxMg==","excerpt":"<p>Ask a data science team how long they take to go from &#8220;we have a model idea&#8221; to &#8220;the model scores live traffic.&#8221; The honest answer rarely involves the model. You fit a gradient-boosted tree or a GLM in an afternoon. A few lines of a well-documented library, a grid search, done. The weeks go&hellip; <a class=\"more-link\" href=\"/how-we-fixed-training-serving-skew-in-our-ml-models/\">Continue reading <span class=\"screen-reader-text\">How We Fixed Training-Serving Skew in Our ML Models</span></a></p>\n","uri":"/how-we-fixed-training-serving-skew-in-our-ml-models/","date":"November 13, 2026","title":"How We Fixed Training-Serving Skew in Our ML Models","categories":{"nodes":[{"slug":"ai","id":"dGVybTo0MjE2","name":"AI"},{"slug":"uncategorized","id":"dGVybTox","name":"Uncategorized"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAAAsSAAALEgHS3X78AAADFklEQVR42mOQEY6VE45XFExSFUjT5M/S4c3T4y3Q5y0EIj3eQl2+Am2+PC2BHHWBTE3BHA3JQgXlHAXhOHnhGDnhaAYVgVRV/lR1/gwt3mw9njwDniIjnmIjnhJDnmID3mKgfh3+Ai3BXHWBLA2hbAWRNGnhRBmhWHmRWDmRGAZDvgJz4VIzgRIroUoL3gpz7nJzrgoz7gpTnnJjnjIDvhJdngIttixN/hxpntgAsZ4y7TXGUgXSwjGyIrEMdpw19tx1Dpx1TlwNDpwN9hwNthz1Nly1Vjw1ZrxVxlxlBiJl1nHzEhvORltsnu906WTtF3/hXgmRaAXxJAYf1m4g8mXp9mDs8GDu8GTvcuPqcORotWStt2SrtVBsUN21Nebmm2nN3xZm/e93eJgmu0BXuFBGLFFJOo0hnGlyBNPkMIbJGXyLYnlm+TL1ejK0eHC0RqpNyTCeGxI6W+/C0byy1/X2j/sjvjcHP5AQiJMRTQYiKdFEhiDGZh+G2gzeGbtzH0+y2efNWu9pPae54OCMyu3FbrMiwqaZHj+Y3P2qNPvlxJS/GQ67xQUCJYXCxISCxYSCGCIYOkMYWtO5ZmyMvNEYtM9+7aHSve9mVP+anvS1JnR1gl2/S+hE+7KlkdkHHXRbpfiCJAXDxYVCRQWDRYGa4xj6Yhn6Ipi6UxgmGExY6XL1SUfs+17/NzPi/k/JP5TvN8tFslqDI16BN0qSK0RGMEZSKEpMMExMJExUJJQhiWFSAsPEOKaJsQxdWnNX+C18XBbyrCH67ezE/5VB6zyUanR5cjX4M1X4UhWEkqUFY2XF46QlYqQkoyQkIxnSmKelsU1PZp2ayjjZ1W+23cy9iR33SxNvx6kvtGQvMWTJA6YcTb5MZf5UecFEaaE4CeEYMZEoYeFwYZEwhnSmGZlsM1OYpiUyT4ll6A5gbfRT63Pnq7NlKLHjajAVqABrzlLmT5MTSpISihcXjhEVjhIWiRACaWaYkcowPZlhagLD5GjmieFMvf4MzV4sTd4cPR7cM42lm/S5czX5spWQNYuANYuGAwDlye+IcW7c5gAAAABJRU5ErkJggg==","aspectRatio":1.5873015873015872,"src":"/static/8845157aae862da8b5545e41cb04eb1c/bc8e0/AXIOM-04.png","srcSet":"/static/8845157aae862da8b5545e41cb04eb1c/8ac63/AXIOM-04.png 200w,\n/static/8845157aae862da8b5545e41cb04eb1c/3891b/AXIOM-04.png 400w,\n/static/8845157aae862da8b5545e41cb04eb1c/bc8e0/AXIOM-04.png 800w,\n/static/8845157aae862da8b5545e41cb04eb1c/e48ff/AXIOM-04.png 868w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Achal Ananth, Kedar Swadi, Pramod Patil, Vaishnavi Turkane"}},{"id":"cG9zdDoxMjM4Mg==","excerpt":"<p>It’s 3:00 AM. The glare of a monitor cuts through a pitch-black room as a critical alert pierces your sleep. Seconds later, you&#8217;re locked in a familiar, exhausting ritual: eight browser tabs open, bouncing frantically from Grafana metrics to Loki log streams, then over to Jira change logs. While the incident clock ticks, you’re forced&hellip; <a class=\"more-link\" href=\"/from-tool-hopping-to-talking-reimagining-datacenter-observability-with-netra/\">Continue reading <span class=\"screen-reader-text\">From Tool-Hopping to Talking: Reimagining Datacenter Observability with NETRA</span></a></p>\n","uri":"/from-tool-hopping-to-talking-reimagining-datacenter-observability-with-netra/","date":"September 28, 2026","title":"From Tool-Hopping to Talking: Reimagining Datacenter Observability with NETRA","categories":{"nodes":[{"slug":"ai","id":"dGVybTo0MjE2","name":"AI"},{"slug":"uncategorized","id":"dGVybTox","name":"Uncategorized"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAABcRAAAXEQHKJvM/AAAC0ElEQVR42kWSS08TURiGh0BpOzPn+86Z6Qxtp9BSilBQoFB6YWgLvVDoBdqCUJC7ioJE0aACISIxkmBcmJhooomJMTHGmLhS+QX+ARf+CLfu3DiQGJM3Z/fkSb7zcHZINUBKwWEJ44i6iBErhuppsI721tE+E+030yhP44SlJZproGWNznhwwYer7XiNc0DGTtIqJm04REEnEOUhbKZBE+37D7M4kTNMyqtyRZOrbpw34A62yblgVJNzDhxRpYzsyGDDkCjrVhauP+PrWciArRgjkGQ4qsK4BlNunPPikg9XOA8peLTJRlfZqebtWt7ggcV4iFhZyESDNWKPAaM6DDTFMKvSohMrTVj14qIPl7lWsdxiLnhxwsOKqiUp8wkJE7IyZDIHEML+jgULH7KIUaSGOcNI1o4TTqg4xYpLuMh1y0vB8Ha7XG2jk3rn5VDHolPKSnQoX7xZfvc++eJk8+mH7sAMT+KyPOL3ziuQa7EtRLy7/c07XKp15/jrj17/hr9u8u2zb4933qiWjCIkP598r/7+KT159enXn7295xwXcLtKR2tfGpVSwHt9vfixPPCa08n6iGMrRK70kKXzMOeXpltoyW0r9LXPprePuw5fjlX3FduwTU2pasZlL6i2bIMtr0llTa5wSXErZt2MiTci4lovWenCS21kyieVNDrGanTFpFtr+wkZpCyBNM5k4z0dgRghMW5MuD9K7qXFO3FxM3rKL3WSWR+puLHoYmMqzSjMOFUcYJCgUcGAaAyNRQUS4UrCwbjwICfspsldnd0KwdUestBOplug1Ag5B4zYYJhB4gweENCo7TRB4yMtcoibFh5PCY8mhIc5cqA37Ufk9T5h2ZC3GnIoOCGrQFKCBMKgCBGehnl33NKom5sGzM06N8sfzwhHZeEwb8ittweFjSBZvUDmzpFJDxSdYFSV+geHrdBvOc0uUIddtWLnX98AkFf5kAQ8AAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/ba4ff4bf12dd10f99b59dd0d51e6bf33/bc8e0/NETRA-ICON.png","srcSet":"/static/ba4ff4bf12dd10f99b59dd0d51e6bf33/8ac63/NETRA-ICON.png 200w,\n/static/ba4ff4bf12dd10f99b59dd0d51e6bf33/3891b/NETRA-ICON.png 400w,\n/static/ba4ff4bf12dd10f99b59dd0d51e6bf33/bc8e0/NETRA-ICON.png 800w,\n/static/ba4ff4bf12dd10f99b59dd0d51e6bf33/6050d/NETRA-ICON.png 1200w,\n/static/ba4ff4bf12dd10f99b59dd0d51e6bf33/00405/NETRA-ICON.png 1600w,\n/static/ba4ff4bf12dd10f99b59dd0d51e6bf33/c1b57/NETRA-ICON.png 1809w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"Kaustubh Tripathi, Sreeman Repaka, Shejin Jacob Paulose"}},{"id":"cG9zdDoxMjMxMA==","excerpt":"<p>At PhonePe, our strategy for AI in HR was never about deploying a single, generic solution. Instead, we set out to build a fit for purpose ecosystem prioritizing speed, flexibility, and accuracy embedded directly into daily workflows. AI Readiness began before AI. We have been deliberate about maintaining a small number of core systems as&hellip; <a class=\"more-link\" href=\"/from-experimentation-to-scale-phonepes-ai-journey-in-hr/\">Continue reading <span class=\"screen-reader-text\">From Experimentation to Scale: PhonePe&#8217;s AI Journey in HR </span></a></p>\n","uri":"/from-experimentation-to-scale-phonepes-ai-journey-in-hr/","date":"September 10, 2026","title":"From Experimentation to Scale: PhonePe’s AI Journey in HR ","categories":{"nodes":[{"slug":"ai","id":"dGVybTo0MjE2","name":"AI"}]},"author":{"node":{"id":"dXNlcjoxMzc4","name":"akankshamishra"}},"featuredImage":{"node":{"altText":"","localFile":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAABcRAAAXEQHKJvM/AAADJElEQVR42gEZA+b8AAYQMAoSNwkSNgkRNg4SOxIUQBMUQhIRRBcVSRsXTRcSTRsNThYMTBUOTh0TVx4TWR8UWyAUXR8UXB8UXAAOEDgXF0kHDjMLETgTFkEREz8SEkIUEkUYFEkaF00aE00ZMF48PHlCMHYaE1MfFVkbFFYZFFQeFFseFFsAChA1DhQ6MDJrFBM+FhVAEhNDFhNGFxNIGBRLGhFMGSFUPc+0ocTouHf0UzqNGhdRLRZpOhF2HBNYHBNXABIRPhsYR3V731ZyuSYtXhYIPhgRRxgSSBgRSRwVThINSWGjqLPs+1ZWoD4mchIRSU0cj2YUrBwSVBoUVAAgGUwjHU9sYc12n+5aq9MuYoghGlIoG10sIWMYD04YDEkiIlhAX4saG1UUD0kZE1AZD00cFFMZE1AZFFAAJBVSIxNPPDh9YZLHW8TdStTYLomeKBhgU0uDUEiBKB9gGxBOGAtHGRJMGQpHHxhSKC5mFBBIFhNLGBVMAC0VXCsVWyUOUDgjaV+FsFCzyjaFqF8UlWkZnnBHm2dWklNLhSsiYRoNSh1Ca0ibxEdxrBILPRscTBQTRQA0FmM5GWo/HXg6HnQ6GG84S4UvbY+AHrO+ZeGQM8JDC3xOOXlcU442naR31NlmreBBdKUQCjkSFEIPET8ASh6ARR+BQS95SS9+RB14Rx58PR12LxlrRhx8RhJ9NxhtUTJ5TlqLQu7IuZTcbG3OOIemCQIxDhM8DBE5AGMlpUwfiz4vdEpKi1tDoE4hhzobbT0fczIbbiwbZTMeZ2hMi257oBvgtVCiyk+Vwlh0oSwqWQwUPgwSNgBmIqhpJq5dIKBLJoZCOX01H2hVPX9fRoZIKXY7HHItHWotD2E1PncX1q8zkZ8+LnY7HGYrLlwMGEQKFDUAYR+cYyCjZSOoYySnVx+WRR9+Rit3UjZ9QiR1Mx9uPxl2MxNpKilnMDtxOhBlJxhYDxlHCxZBChg/BRAuAFscklwdlVsemFofmlsinVcjmkogiEAdfS8WZzU9c1x2wGlDljodaSsUXxweVRYdTRAZRwoWPQUTNAMQKhRL2G7ybfYRAAAAAElFTkSuQmCC","aspectRatio":1.5873015873015872,"src":"/static/2a4ce3c8c10695caf9007717a8fa3599/bc8e0/HR-operations-icon.png","srcSet":"/static/2a4ce3c8c10695caf9007717a8fa3599/8ac63/HR-operations-icon.png 200w,\n/static/2a4ce3c8c10695caf9007717a8fa3599/3891b/HR-operations-icon.png 400w,\n/static/2a4ce3c8c10695caf9007717a8fa3599/bc8e0/HR-operations-icon.png 800w,\n/static/2a4ce3c8c10695caf9007717a8fa3599/6050d/HR-operations-icon.png 1200w,\n/static/2a4ce3c8c10695caf9007717a8fa3599/00405/HR-operations-icon.png 1600w,\n/static/2a4ce3c8c10695caf9007717a8fa3599/3e197/HR-operations-icon.png 1788w","sizes":"(max-width: 800px) 100vw, 800px"}}}}},"subtitleAcf":{"text":"PhonePe Team"}}]},"previous":null,"next":{"uri":"/ignismq-running-thousands-of-ephemeral-isolated-queues-on-aerospike-at-scale/","title":"IgnisMQ: Running Thousands of Ephemeral, Isolated Queues on Aerospike at Scale"},"categoriesData":{"nodes":[{"id":"dGVybTo0MjE2","name":"AI","count":8,"uri":"/category/ai/"},{"id":"dGVybToxOQ==","name":"Architecture","count":15,"uri":"/category/architecture/"},{"id":"dGVybTo0NDI=","name":"Cricket","count":null,"uri":"/category/sports/cricket/"},{"id":"dGVybTo3","name":"Engineering","count":18,"uri":"/category/engineering/"},{"id":"dGVybToyNQ==","name":"Mobile","count":10,"uri":"/category/mobile/"},{"id":"dGVybToyMg==","name":"Open Source","count":1,"uri":"/category/open-source/"},{"id":"dGVybToxNg==","name":"People Stories","count":3,"uri":"/category/people-stories/"},{"id":"dGVybToyOA==","name":"Product","count":3,"uri":"/category/product/"},{"id":"dGVybTo0MzM=","name":"Sports","count":null,"uri":"/category/sports/"},{"id":"dGVybTozMQ==","name":"Tech Stories","count":null,"uri":"/category/tech-stories/"},{"id":"dGVybTox","name":"Uncategorized","count":2,"uri":"/category/uncategorized/"}]},"recentPosts":{"nodes":[{"id":"cG9zdDoxMzIyOA==","title":"Bolt: Bi-directional Realtime Streaming Platform","uri":"/bolt-bi-directional-realtime-streaming-platform/"},{"id":"cG9zdDoxMjc5MA==","title":"IgnisMQ: Running Thousands of Ephemeral, Isolated Queues on Aerospike at Scale","uri":"/ignismq-running-thousands-of-ephemeral-isolated-queues-on-aerospike-at-scale/"},{"id":"cG9zdDoxMjcxMg==","title":"How We Fixed Training-Serving Skew in Our ML Models","uri":"/how-we-fixed-training-serving-skew-in-our-ml-models/"},{"id":"cG9zdDoxMjM4Mg==","title":"From Tool-Hopping to Talking: Reimagining Datacenter Observability with NETRA","uri":"/from-tool-hopping-to-talking-reimagining-datacenter-observability-with-netra/"},{"id":"cG9zdDoxMjMxMA==","title":"From Experimentation to Scale: PhonePe’s AI Journey in HR ","uri":"/from-experimentation-to-scale-phonepes-ai-journey-in-hr/"}]}},"pageContext":{"id":"cG9zdDoxMzIyOA==","categories":[{"id":"dGVybTo0MjE2","name":"AI","slug":"ai","uri":"/category/ai/","count":8},{"id":"dGVybToxOQ==","name":"Architecture","slug":"architecture","uri":"/category/architecture/","count":15},{"id":"dGVybTo3","name":"Engineering","slug":"engineering","uri":"/category/engineering/","count":18},{"id":"dGVybToyNQ==","name":"Mobile","slug":"mobile","uri":"/category/mobile/","count":10},{"id":"dGVybToyMg==","name":"Open Source","slug":"open-source","uri":"/category/open-source/","count":1},{"id":"dGVybToxNg==","name":"People Stories","slug":"people-stories","uri":"/category/people-stories/","count":3},{"id":"dGVybToyOA==","name":"Product","slug":"product","uri":"/category/product/","count":3},{"id":"dGVybTox","name":"Uncategorized","slug":"uncategorized","uri":"/category/uncategorized/","count":2}],"categoryId":"dGVybTo3","previousPostId":null,"nextPostId":"cG9zdDoxMjc5MA=="}},
    "staticQueryHashes": ["4132566406"]}