Nutshell
Nutshell
  • 36
  • 59 520
[Explained] What is Promise in Javascript? [Asynchronous] [Callbacks]
Promises are one way to deal with asynchronous code, without getting stuck in callback hell. A promise is commonly defined as a proxy for a value that will eventually become available. In this video, I talk about what are promises and how it helps in achieving asynchronous programming.
Reference articles,
jawahar.tech/blog/javascript-asynchronous-programming
nodejs.dev/en/learn/understanding-javascript-promises/
www.freecodecamp.org/news/javascript-promise-tutorial-how-to-resolve-or-reject-promises-in-js/
🔥 Subscribe: ua-cam.com/users/NutshellJawahar
▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️▫️
💥 Thanks for visiting 💡 Nutshell. 💥
The channel focus on introducing software concepts, that cover area like Languages and Frameworks, Infrastructure, DevOps, OOPS and many more. Technical breadth is essential for full stack development and it is important criteria in most full stack dev interviews.
This channel helps you to become the jack of all concepts. 😑
It is difficult to understand the details of all technical concepts in shorter period of time. And it also tiresome to watch hourly long videos to understand the concepts. The objective of this channel is to introduce the technical concepts and explain the crux of those concepts within 5 to 10 minutes. It is up to you to go ahead and understand those concepts in details, if it interest you. The idea is to keep the video as simple and short as possible to just introduce the concepts and make the viewers understand the purpose and use cases for such concepts.
Feedbacks and comments are highly appreciated. 😀
Website: www.jawahar.tech
Linkedin: www.linkedin.com/in/jawahars16/
Twitter: jawahars_16
Instagram: jawahar.tech
#javascript #promise #async #threading #programming
Переглядів: 307

Відео

What is JAMStack [Web Development] [Frontend Programming]
Переглядів 4562 роки тому
JAMStack is a revolutionary technique to build web applications. Traditional web development needs continuous infrastructure maintenance. This video talks about the problems that we face with traditional web development approach and how JAMStack address those problems. Reference links, jawahar.tech/blog/rise-of-jamstack/ www.netlify.com/jamstack/ umbraco.com/knowledge-base/jamstack/ 🔥 Subscribe...
What is Hashing | Why we need Hashing | [Data structures and Algorithm]
Переглядів 7252 роки тому
Hashing is a technique to convert a given object/value into another near unique value. This helps in improving the efficiency of a lookup operation by mapping the actual value to a specific key. This video explains the technique of hashing using simple examples. Reference links, www.2brightsparks.com/resources/articles/introduction-to-hashing-and-its-uses.html www.programiz.com/dsa/hash-table H...
Composition over Inheritance [Object Oriented Programming]
Переглядів 4,3 тис.2 роки тому
Prefer Composition over Inheritance. With composition, it's easy to change behaviour on the fly with Dependency Injection / Setters. Inheritance is more rigid as most languages do not allow you to derive from more than one type. This video talks about what is Composition and why to prefer it over Inheritance. Reference Links, jawahar.tech/blog/golang-inheritance-vs-composition www.thoughtworks....
What is Service Mesh? 💡 [Microservices | System Design]
Переглядів 1,3 тис.2 роки тому
A service mesh is a dedicated infrastructure layer built right into an app that document how well (or not) different parts of an app interact, so it becomes easier to optimize communication and avoid downtime as an app grows. This video talks about what are th e challenges in service to service communication in microservices design pattern and how service mesh manages those complexities. Refere...
What is JSON Web Token (JWT)? 🔑
Переглядів 5882 роки тому
JSON Web Token is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. In this video, I talk about JWT based auth flow and the structure of JSON Web Token. Reference links, jwt.io/ auth0.com/learn/json-web-tokens/ blog.angular-university.io/angular-jwt/ 🔥 Subscribe: ua-cam.com/channels/mMu....
What is Time Complexity? ⏰ (Data Structures and Algorithms)
Переглядів 3492 роки тому
Time Complexity is a technique used by Computer scientists to measure the efficiency of an algorithm. It is usually represented by Big'O Notation. Beginners usually feel that this is a complex concept to understand. In this video, I try to explain this concept as simple as possible. Reference Links, www.hackerearth.com/practice/basic-programming/complexity-analysis/time-and-space-complexity/tut...
What is Circuit Breaker? [Resilient System Design | Microservices]
Переглядів 5492 роки тому
Circuit breaker in electrical domain, a device that controls the flow of electricity into the appliance. It protects the device from unusual flow of electricity. In this video, I am explaining, how the same pattern can be applied to microservices design. Reference articles, www.jawahar.tech/blog/handling-transient-faults/ martinfowler.com/bliki/CircuitBreaker.html docs.microsoft.com/en-us/azure...
What is NodeJS event loop? [Backend Programming]
Переглядів 2902 роки тому
What is NodeJS event loop? [Backend Programming]
How to handle Transient Faults in microservices? [Resilient System Design]
Переглядів 1 тис.2 роки тому
How to handle Transient Faults in microservices? [Resilient System Design]
What is database sharding | Partitioning?
Переглядів 9132 роки тому
What is database sharding | Partitioning?
What is CAP theorem? Consistency ▫️ Availability ▫️ Partition Tolerance
Переглядів 4092 роки тому
What is CAP theorem? Consistency ▫️ Availability ▫️ Partition Tolerance
Point to Point vs Publish/Subscribe messaging model.
Переглядів 4,1 тис.2 роки тому
Point to Point vs Publish/Subscribe messaging model.
What is Message Queue?
Переглядів 9352 роки тому
What is Message Queue?
Let's compare IaaS and PaaS
Переглядів 1502 роки тому
Let's compare IaaS and PaaS
What is Content Delivery Network (CDN)?
Переглядів 1262 роки тому
What is Content Delivery Network (CDN)?
Let's compare Stack and Heap
Переглядів 2162 роки тому
Let's compare Stack and Heap
How HTTP(S) works? TLS authentication | SSL verification | asymmetric encryption
Переглядів 1762 роки тому
How HTTP(S) works? TLS authentication | SSL verification | asymmetric encryption
What is Container Orchestration?
Переглядів 2 тис.2 роки тому
What is Container Orchestration?
Multithreading vs Asynchronous Programming
Переглядів 16 тис.2 роки тому
Multithreading vs Asynchronous Programming
When to use Interfaces?
Переглядів 1,3 тис.2 роки тому
When to use Interfaces?
What is Service Discovery in Microservices?
Переглядів 3712 роки тому
What is Service Discovery in Microservices?
What is Inversion of Control (IoC)?
Переглядів 19 тис.2 роки тому
What is Inversion of Control (IoC)?
What are good and bad about Microservices?
Переглядів 3622 роки тому
What are good and bad about Microservices?
What are Containers?
Переглядів 5912 роки тому
What are Containers?
What is Distributed Denial of Service (DDOS)?
Переглядів 1102 роки тому
What is Distributed Denial of Service (DDOS)?
What is Virtualization?
Переглядів 6642 роки тому
What is Virtualization?
Let's understand Denial of Service (DOS)
Переглядів 712 роки тому
Let's understand Denial of Service (DOS)
Reverse Proxy in a nutshell.
Переглядів 2882 роки тому
Reverse Proxy in a nutshell.

КОМЕНТАРІ

  • @bireddybhaannukirann5573
    @bireddybhaannukirann5573 Місяць тому

    I saw many videos but it was the best

  • @vishwai8653
    @vishwai8653 2 місяці тому

    First time watched this video from this channel, subscribed immediately. Great explanation.

  • @muhammedashkar692
    @muhammedashkar692 2 місяці тому

    Simple explaination. Nice work. PS: from Kerala

  • @gowthamkarukola2803
    @gowthamkarukola2803 2 місяці тому

    excellent explanation

  • @felipemfrudeli
    @felipemfrudeli 2 місяці тому

    🤯🤩 good explanations

  • @TruptiaurKirankiDuniya
    @TruptiaurKirankiDuniya 2 місяці тому

    awesome explanation

  • @supun_sandaruwan
    @supun_sandaruwan 3 місяці тому

    use Early return principle ❤

  • @isharamadushani47
    @isharamadushani47 3 місяці тому

    well explained😍

  • @prerakhere
    @prerakhere 4 місяці тому

    Abstraction is the primary use case. Another great use case is when the classes need to follow a contract. Interfaces act as contracts.

  • @sureshthaduri6275
    @sureshthaduri6275 4 місяці тому

    so if we not maintain threadpool, created threads destroyed nd we can nt use right? if we create finte number of threads in thread pool we can re utilize thread right? but we all the theads are in use and we need another thread to process one task then how ??

  • @AshisRaj
    @AshisRaj 4 місяці тому

    nice explanation

  • @riteshdavkare128
    @riteshdavkare128 5 місяців тому

    very badly explained

  • @achyuthapreksha5028
    @achyuthapreksha5028 5 місяців тому

    excellent

  • @akshaygupta2167
    @akshaygupta2167 5 місяців тому

    Very well explained Thanks.

  • @crillin570
    @crillin570 5 місяців тому

    Thank you sir. What happens to the incoming order requests from the order & inventory services while the circuit is open? The customers continue to place orders.

  • @Cheema____Developer_________49
    @Cheema____Developer_________49 6 місяців тому

    Great

  • @Cheema____Developer_________49
    @Cheema____Developer_________49 6 місяців тому

    Great

  • @anilvalsa-b2b
    @anilvalsa-b2b 6 місяців тому

    simple& straight frwd explanation. simple accent . easy to understand.

  • @KungFuMonk69
    @KungFuMonk69 6 місяців тому

    It was helpful, thanks

  • @danimaietta583
    @danimaietta583 6 місяців тому

    This a really good example, your explanation is on point and your pronunciation is very good. I'm subscribed now, thanks a lot!💯

  • @9885516475
    @9885516475 6 місяців тому

    Execellent

  • @_-6912
    @_-6912 7 місяців тому

    Clear Cut

  • @lokeshmnaik2875
    @lokeshmnaik2875 7 місяців тому

    So in asynchronous programing all the 3 request handled by single thread?

  • @NabeelAssain
    @NabeelAssain 7 місяців тому

    Excellent explanation! Simple and clear

  • @kiranvadlamani5807
    @kiranvadlamani5807 7 місяців тому

    Subscribed. Excellent explanation.

  • @cigdemturkmen
    @cigdemturkmen 7 місяців тому

    Subscribed.

  • @cigdemturkmen
    @cigdemturkmen 7 місяців тому

    Nice explanation! Thank you

  • @ShanthanReddyK-hl2zy
    @ShanthanReddyK-hl2zy 8 місяців тому

    Thank you for the detailed explanation

  • @euromillionsgate6737
    @euromillionsgate6737 8 місяців тому

    Really good explaination.

  • @RiderInHell
    @RiderInHell 8 місяців тому

    Hey. Thanks for the explaination. Just to clarify, IoC is basically the same as DI (Dependency Inversion), right?

    • @ElisabetLanus
      @ElisabetLanus 8 місяців тому

      DI is a realisation of IoC, if I'm understand it right.

  • @kartikeyvishusingh
    @kartikeyvishusingh 8 місяців тому

    Explaining through this real world example made it much easier than just giving out definitions. I liked " $50 term for a 5 cent concept" too. Amazing work brother .

  • @maulasab3388
    @maulasab3388 8 місяців тому

    If one await methids Depends another await method result? Then how

  • @maulasab3388
    @maulasab3388 8 місяців тому

    How many threads created in asynchronous?

    • @shobhamahadev118
      @shobhamahadev118 7 місяців тому

      there is no threads will be created for asynchronous but wherever you write await task delay or some actions that is when in order to resume from that place statemachine will internally creates one new worker thread which is called as callback thread for the main thread. This callback thread will be created internally by TPL it doesn't cost any resource ulitilization as we are not creating new thread externally using Thread t1= new Thread (Method); Summary: Async does not use any threads.

    • @maulasab3388
      @maulasab3388 7 місяців тому

      @@shobhamahadev118well explained

  • @maulasab3388
    @maulasab3388 8 місяців тому

    Understood multi thread concept

  • @Jaid-f9n
    @Jaid-f9n 8 місяців тому

    it's really helpful, thanks.

  • @ajay-vavdiya
    @ajay-vavdiya 9 місяців тому

    You are underrated bro . I really admire the effort you put into your work. The quality of your content is truly exceptional. Keep it up.

  • @Pegasusjumpingoff
    @Pegasusjumpingoff 9 місяців тому

    Thanks that's helpful. But I still don't understand, say, in the boiler exmaple, if you only have one burner, you can't boil egg if you already boild milk, right? That happens with some single execution programs I am studying. How asychronous programming can be achieved in this case?

  • @rethanvit
    @rethanvit 10 місяців тому

    Simple, yet clear. Thank you!

  • @shobhamahadev118
    @shobhamahadev118 10 місяців тому

    Useful video 👍

  • @leonardodaitxdebitencourt4979
    @leonardodaitxdebitencourt4979 10 місяців тому

    Thank you!

  • @arunpandiyan6905
    @arunpandiyan6905 10 місяців тому

    Very useful

  • @cipherxen2
    @cipherxen2 10 місяців тому

    You are designing inheritance wrong if you find composition better than it. Like in this example 'Flyable' has nothing to do with 'eat' functionality. Inheritance and composition are two very different tools. You've to use them wisely. In a good design, building blocks are created using inheritance and then, the business logic is built using composition of those building blocks.

  • @goverdhanjayaram3683
    @goverdhanjayaram3683 10 місяців тому

    Very good explanation !! Thank you very much ! Good work !

  • @z-sckool
    @z-sckool 11 місяців тому

    Behtareen 👏👏 explanation

  • @ramuramupattabhi8826
    @ramuramupattabhi8826 11 місяців тому

  • @manishapalsam1304
    @manishapalsam1304 11 місяців тому

    Tq for the advice Sir

  • @s.ragavan4069
    @s.ragavan4069 11 місяців тому

    👀❤‍🔥🛐

  • @khadimali9755
    @khadimali9755 Рік тому

    Nicely explained

  • @sujayghosh5128
    @sujayghosh5128 Рік тому

    Great Video. Highly appreciated

  • @prabhatkumar900
    @prabhatkumar900 Рік тому

    Excellent Explanation. Thanks 👍