Codementor Events

How and why I built Fetching firebase query with very low response time.

Published Mar 16, 2020
How and why I built Fetching firebase query with very low response time.

About me

I'm Saurabh Patwal, software developer. Been coding for more than 7 years. I develop application for web and mobile. I have expertise in high level programming language.

The problem I wanted to solve

To fetch data from firebase is very time consuming and slow. By using a php, I build database query algorithms and data persistence to enhance the speed of APIs.

What is Fetching firebase query with very low response time.?

I used laravel to build APIs which fetch and stores data in firebase. But doing it directly using firebase SDK is very slow and laggy. I developed server side caching mechanism using write back mechanism and after that fetching and updating cache data using some custom built algorithm for better performance.

Tech stack

I used Redis for caching.
Laravel to develop APIs.
Php to create algorithms.
And firebase as main database.

Challenges I faced

Creating and designing algorithms are very tricky and brain teasing. It took me around 2 days to develop 15+ unique algorithms which were optimised and fast.

Key learnings

Keep fundamentals of programming clear as it helps to debug and develop things easily.
Knowledge of data structures and algorithms are good.
First try to start solving problem by understanding every possible test case. So that developing algorithms becomes less tedious.

Tips and advice

Keep yourself hydrated, learn new stuffs and clear basic concepts of programming and programming language you love.

Discover and read more posts from Saurabh Patwal
get started
post commentsBe the first to share your opinion
Show more replies