Read and processing data at Local Host

How to read and process the LoRa gateway message data at local host?

If I receive the messages in JSON format, using MQTT subscription, how do I store the information on the local host? Only in a database like mysql db? How do I store them into a local file system?

There are multiple ways of doing this, namely anything a program or script subscribed to those MQTT messages may do: save to a DB (think Mysql, postgresql, etc., but MonoDB, Redis or whatever you can think of too), write to a file, forward to another service, post to some visualization service, etc.