The centralized logging solution that the Web & Mobile team created is a comprehensive system that collects log data from a variety of components, including AWS Lambda functions and Amazon API Gateway, which is used to create, maintain, and secure APIs at any scale. The team also uses asynchronous services like Amazon Simple Notification Service (Amazon SNS), a fully managed Pub/Sub service for A2A and A2P messaging, and Amazon Managed Streaming for Apache Kafka (Amazon MSK), used to securely stream data with a fully managed, highly available Apache Kafka service. “The system automatically produces technical log events and is complemented by a style guide for integrating product-specific events, tailored to their unique characteristics,” says Marcin Szałomski, software architect in Web & Mobile at Hapag-Lloyd. “Using this rich log data, we have engineered a solution that not only supports our day-to-day operations but also automates certain tasks.” After the log data is processed, partitioned, and transformed, it is ingested into the Amazon OpenSearch Service.
Using the centralized logging system, the Web & Mobile team can instantly monitor its applications’ status, reducing reliance on customer reports to identify service issues. Upon deploying new releases, the team can visually confirm that the application is running properly right away.
Additionally, Amazon OpenSearch works seamlessly with a notification solution, so the team can automatically query the data for additional context whenever an outage launches an alarm.
When issues do arise, developers can get to the root cause more quickly and resolve them faster.
The centralized logging solution is also a source of data for making business decisions for Hapag-Lloyd Web & Mobile. “Technical logs, when analyzed, give us business context and information, too,” says Dawid Kuziemski, product manager of Web & Mobile at Hapag-Lloyd. For one Hapag-Lloyd product, Quick Quotes—which customers use to generate shipping container quotes in 30 seconds—the Web & Mobile team used Amazon OpenSearch Service dashboards to determine the importance of certain features for customers. In 2022, a relevant portion of Hapag-Lloyd’s business was booked through Quick Quotes. However, there was a functionality barely used by its customers that was difficult to integrate into a new release. Based on the data collected, the product managers decided not to include it in the upgrade, which saved the developers time and reduced the overall technical debt of the solution. The team also used data to determine which default value should appear in one Quick Quotes field and revealed another field where it needed to standardize the possible options. “We use the Amazon OpenSearch Service dashboard to make data-driven decisions, which is very important to us,” says Felipe Barrera, product owner of quotation tools in Web & Mobile at Hapag-Lloyd.
“We have much better flexibility as a team because—using Amazon OpenSearch Service and the centralized logging—we have more information and we can measure success,” says Kuziemski. “We can learn faster and iterate faster on our software because we can measure if we are improving.”