I created two apps in node js 

i: Parser (server 1)

ii: functional app with rest api's(server 2)

Each application run on different server 

database(MongoDB) connection is on server 2

the main purpose of parser is to get the hardware device data and implement the protocol and send the data to database 

Now i have two option to send the data from server 1 to server 2 db

1: RemoteDb

2: RabitMQ to send the data to server 2 and then save data in localDB

which one is better or any other solution