As we know it, Content Resource Service building block help centralized localization effort in Traveloka by providing localized text, image, and commerce template to be consumed by other products in Traveloka. As Traveloka system grows and evolved throughout the past couple years, there are a couple issues arise and need to be addressed. This new Content Resource Library is created to fix that problem.
Content resource architecture no longer able to keep up with the growing number of products and services. With the old architecture, the platform will hit the limit of allowed connection with another 100 new services with the way it is currently designed. Our new architecture removing that limit, allowing as many as product services to read Content Resource by only adding single line of policy to S3.
System have proven to be unreliable and if we try to focus on increasing its reliability, the options are more towards increasing number of instances both for server and database, but it’s still exposing the risk of Single Point of Failure and more costly compared to if we try to design a whole new infra suited for static content use case. Our new architecture removing that Single Point of Failure (especially the database), allowing our client to read the CR value directly from much more reliable source (S3), with cache in place to preserve the low-latency access.
Operational is costly, need to do load test for planned traffic increase and then increase the number of EC2 every high event traffic. Our new architecture removing this effectively by moving the traffic from RPC to S3 directly, eliminating the need for scaling the service machine, since the traffic is directly served by S3 and client server machine.
We can say confidently, yes, it's safe to migrate.
Up until now, 80% of CNTRES Traffic (~17mio Req/day) has been migrated to the new system and there's no noticeable negative impact on reliability and latency.
We're planning to fully deprecate the CNTRES service on December 31st, 2021 at the latest. Pushed to End of Q1 2022
Should you have any further question regarding this, please don't hesitate to raise it at #content-channel
Thank You All!