I am researching for developing the system for web and mobile technologies and I found the Firebase system which has good control for authentication, scalability, real time, etc. Since, this is a two tier architecture of client and firebase itself. But I need a 3 tier architecture of client, server and database where the server has all the business logic.
Would it be possible to integrate a server in between client and firebase such that all the request/response goes through server and at the same time preserving the features of firebase?