I doubt firebase or the others listed here (https://meliorgames.com/game-development/back-end-solutions-...) would work for a real-time game, where we are talking tick level logic on the server side. It really depends on what you mean by "real-time game"