The application is responsible for consuming messages from the message queue containing currency exchange rate information and persisting them into a database. The database is designed to store only the most current information regarding the buying and selling rates for each currency.