
How to Scale to a Billion Documents in Symfony - Part II
This article was written by Andreas Braun . Building an Application In the first part of this series, we designed a schema to store fuel prices in MongoDB and imported a large amount of data into the database. We also looked at how to efficiently aggregate this data using MongoDB's aggregation framework. With the database prepared, it is now time to build a Symfony application that allows us to interact with this data. In this part of the tutorial, we'll use the Doctrine MongoDB ODM to map our documents to PHP classes, and Symfony UX to build a modern frontend. To recap, this is what we want our application to do: Show a dashboard with some general information Show a list of stations Allow searching for a station by name, brand, or location Show the details of a station, including: A map showing the station's location The latest prices for each fuel type A chart showing the price history for the last day Setting Up the Application First, we set up our Symfony application using the Symf
Continue reading on Dev.to Webdev
Opens in a new tab



