Recently In a system design interview question I was asked that two microservices should not use HTTP/HTTPS for communication. The data transferred to the second service should be encrypted and transformed to Google’s protocol buffer format.
I told then that we can use Apache ActiveMq for communication between two microservices.But there ask was that first service will only transfer encrypted data for GET/PUT/POST method and second service will store the data in DB. And in case of GET API it should return the encrypted data to Service1 and there it should be decrypted to get the actual data and returned as response.How can we achieve request response architecture using ActiveMQ? Is there any other way to do it?
Any suggestions or ideas or links are most welcome