Day 2 of Understanding Promises Aaj ki humari video mein hum samjne wale hai the concept of Promise.race Imagine a situation jaha pe apko data lana hai from two sources and want to display the data which arrives first For example You have stored user data in Mumbai and Europe now you are requesting the data from Delhi.Quite obviously the nearest data centre is Mumbai and jo request Mumbai ke server ko hit kargei will return faster with data so in this scenario race method will return data of Mumbai server. If you can think of some creative use cases comment below and will discuss If you find this video interesting, do give it a like and follow @rushil.dev for more such concepts, save this video for future use case #frontenddeveloper #nodejs #mernstack #backenddeveloper #coding #javascript #html #css #software
Day 2 of Understanding Promises Aaj ki humari video mein hum samjne wale hai the concept of Promise.race Imagine a situation jaha pe apko data lana hai from two sources and want to display the data which arrives first For example You have stored user data in Mumbai and Europe now you are requesting the data from Delhi.Quite obviously the nearest data centre is Mumbai and jo request Mumbai ke server ko hit kargei will return faster with data so in this scenario race method will return data of Mumbai server. If you can think of some creative use cases comment below and will discuss If you find this video interesting, do give it a like and follow @rushil.dev for more such concepts, save this video for future use case #frontenddeveloper #nodejs #mernstack #backenddeveloper #coding #javascript #html #css #software