Fully managed hosting of your Cube apps
The Cube x FeedMe user story.
Based in Malaysia, FeedMe was founded in 2019 and provides a Point of Sale (POS) system for the food and beverage industry across South East Asia. In addition to POS equipment that you see in restaurants, FeedMe provides reporting to their customers. The reporting ranges from sales reports, marketing analytics, inventory management, and others.
FeedMe wanted to provide a robust reporting system that allowed users to generate their own custom reports. However, their previous solution that was based on SQL queries and JavaScript to process data across MongoDB, CouchDB, and BigQuery was becoming increasingly difficult to maintain and scale. FeedMe uses CouchDB in their client POS systems that can work either online or offline. CouchDB data is then fed into the BigQuery data lake for reporting. FeedMe’s backend systems are written in JavaScript, so they wanted to use JavaScript to process data from MongoDB and BigQuery.
The FeedMe team found Cube through Google searches as they were looking for a solution that can help them develop a data schema standard. They soon learned that Cube could help simplify their data processing and decided to take a phased approach to deploy Cube.
In the first phase, they only focused on migrating part of their data schema using Cube’s Dynamic Schema Creation. They found this process to be relatively straightforward and spent about two weeks to complete this first phase.
In the next phase, the team spent another three weeks migrating the rest of their data schema and then implementing more advanced features such as pre-aggregations and Cube Store. The FeedMe team liked the more flexible caching mechanism in Cube since they can customize refreshKey and rollup definitions. With Cube pre-aggregations and Cube Store, FeedMe’s BigQuery cost is down by about ⅔. (Before Cube, they could only rely on BigQuery’s built-in cache.)
Also, without pre-aggregations, it could take several minutes for their customers to query several months of sales data which wasn’t ideal. When the data is cached and pre-aggregated, a similar query would take less than 10 seconds.
At FeedMe, Cube is deployed via Docker along with Kubernetes, and they use Chart.js for visualizations. You will find more details in the architectural diagram below.
Cube has been in production at FeedMe since May 2021, and below is a sample screenshot of a sales dashboard.
The following screenshot shows a dashboard called the daily Close Up summary.
The FeedMe team used the Cube documentation as an onboarding tool to get familiar with Cube and its features in the early days. They also liked the collaborative nature of the Cube community, especially on Slack, as they were navigating different features such as rollupJoin, pre-aggregations, and Cube Store.
They also provided feedback to the Cube Dev team when they discovered an issue with pre-aggregations. Enhancements to the rollupJoin and pre-aggregations will further streamline how the FeedMe team provides custom reports for their users while maintaining their BigQuery costs.
Explore Cube examples & tutorials and get started today. To jumpstart your efforts, please join us on Discourse & Slack, follow us on Twitter, and get engaged with the growing Cube community.
Fully managed hosting of your Cube apps