Photon Interview Question

How Rest API works? How to communicate between the server? How to handle large size data in DB? How improve the performance