Nutshell
Nutshell
  • 36
  • 58 796
[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: th-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
มุมมอง: 305

วีดีโอ

What is JAMStack [Web Development] [Frontend Programming]
มุมมอง 4472 ปีที่แล้ว
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]
มุมมอง 7172 ปีที่แล้ว
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.2K2 ปีที่แล้ว
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.3K2 ปีที่แล้ว
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)? 🔑
มุมมอง 5842 ปีที่แล้ว
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: th-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]
มุมมอง 5462 ปีที่แล้ว
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]
มุมมอง 2892 ปีที่แล้ว
What is NodeJS event loop? [Backend Programming]
How to handle Transient Faults in microservices? [Resilient System Design]
มุมมอง 1K2 ปีที่แล้ว
How to handle Transient Faults in microservices? [Resilient System Design]
What is database sharding | Partitioning?
มุมมอง 9082 ปีที่แล้ว
What is database sharding | Partitioning?
What is CAP theorem? Consistency ▫️ Availability ▫️ Partition Tolerance
มุมมอง 4072 ปีที่แล้ว
What is CAP theorem? Consistency ▫️ Availability ▫️ Partition Tolerance
Point to Point vs Publish/Subscribe messaging model.
มุมมอง 4.1K2 ปีที่แล้ว
Point to Point vs Publish/Subscribe messaging model.
What is Message Queue?
มุมมอง 9232 ปีที่แล้ว
What is Message Queue?
Let's compare IaaS and PaaS
มุมมอง 1482 ปีที่แล้ว
Let's compare IaaS and PaaS
What is Content Delivery Network (CDN)?
มุมมอง 1252 ปีที่แล้ว
What is Content Delivery Network (CDN)?
Let's compare Stack and Heap
มุมมอง 2152 ปีที่แล้ว
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?
มุมมอง 2K2 ปีที่แล้ว
What is Container Orchestration?
Multithreading vs Asynchronous Programming
มุมมอง 16K2 ปีที่แล้ว
Multithreading vs Asynchronous Programming
When to use Interfaces?
มุมมอง 1.3K2 ปีที่แล้ว
When to use Interfaces?
What is Service Discovery in Microservices?
มุมมอง 3692 ปีที่แล้ว
What is Service Discovery in Microservices?
What is Inversion of Control (IoC)?
มุมมอง 19K2 ปีที่แล้ว
What is Inversion of Control (IoC)?
What are good and bad about Microservices?
มุมมอง 3612 ปีที่แล้ว
What are good and bad about Microservices?
What are Containers?
มุมมอง 5892 ปีที่แล้ว
What are Containers?
What is Distributed Denial of Service (DDOS)?
มุมมอง 1102 ปีที่แล้ว
What is Distributed Denial of Service (DDOS)?
What is Virtualization?
มุมมอง 6562 ปีที่แล้ว
What is Virtualization?
Let's understand Denial of Service (DOS)
มุมมอง 712 ปีที่แล้ว
Let's understand Denial of Service (DOS)
Reverse Proxy in a nutshell.
มุมมอง 2852 ปีที่แล้ว
Reverse Proxy in a nutshell.

ความคิดเห็น

  • @bireddybhaannukirann5573
    @bireddybhaannukirann5573 หลายเดือนก่อน

    I saw many videos but it was the best

  • @vishwai8653
    @vishwai8653 หลายเดือนก่อน

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

  • @muhammedashkar692
    @muhammedashkar692 หลายเดือนก่อน

    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 3 หลายเดือนก่อน

    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 3 หลายเดือนก่อน

    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 4 หลายเดือนก่อน

    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 5 หลายเดือนก่อน

    Great

  • @Cheema____Developer_________49
    @Cheema____Developer_________49 5 หลายเดือนก่อน

    Great

  • @anilvalsa-b2b
    @anilvalsa-b2b 5 หลายเดือนก่อน

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

  • @KungFuMonk69
    @KungFuMonk69 5 หลายเดือนก่อน

    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!💯

    • @jawahar.nutshell
      @jawahar.nutshell 6 หลายเดือนก่อน

      Thanks for watching Nutshell 💡

  • @9885516475
    @9885516475 6 หลายเดือนก่อน

    Execellent

  • @_-6912
    @_-6912 6 หลายเดือนก่อน

    Clear Cut

  • @lokeshmnaik2875
    @lokeshmnaik2875 6 หลายเดือนก่อน

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

    • @ibtehajali1035
      @ibtehajali1035 12 วันที่ผ่านมา

      Have you found answer?

  • @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 7 หลายเดือนก่อน

    Thank you for the detailed explanation

  • @euromillionsgate6737
    @euromillionsgate6737 7 หลายเดือนก่อน

    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 7 หลายเดือนก่อน

      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 .

    • @jawahar.nutshell
      @jawahar.nutshell 8 หลายเดือนก่อน

      Glad it was helpful! 💡

  • @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 8 หลายเดือนก่อน

    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 8 หลายเดือนก่อน

    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 9 หลายเดือนก่อน

    Simple, yet clear. Thank you!

    • @jawahar.nutshell
      @jawahar.nutshell 9 หลายเดือนก่อน

      Thanks for watching Nutshell 💡

  • @shobhamahadev118
    @shobhamahadev118 9 หลายเดือนก่อน

    Useful video 👍

    • @jawahar.nutshell
      @jawahar.nutshell 9 หลายเดือนก่อน

      Thanks for watching Nutshell 💡

  • @leonardodaitxdebitencourt4979
    @leonardodaitxdebitencourt4979 9 หลายเดือนก่อน

    Thank you!

  • @arunpandiyan6905
    @arunpandiyan6905 9 หลายเดือนก่อน

    Very useful

    • @jawahar.nutshell
      @jawahar.nutshell 9 หลายเดือนก่อน

      Thanks for watching Nutshell 💡

  • @cipherxen2
    @cipherxen2 9 หลายเดือนก่อน

    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 10 หลายเดือนก่อน

    Behtareen 👏👏 explanation

  • @ramuramupattabhi8826
    @ramuramupattabhi8826 11 หลายเดือนก่อน

  • @manishapalsam1304
    @manishapalsam1304 11 หลายเดือนก่อน

    Tq for the advice Sir

  • @s.ragavan4069
    @s.ragavan4069 11 หลายเดือนก่อน

    👀❤‍🔥🛐

  • @khadimali9755
    @khadimali9755 11 หลายเดือนก่อน

    Nicely explained

  • @sujayghosh5128
    @sujayghosh5128 ปีที่แล้ว

    Great Video. Highly appreciated

  • @prabhatkumar900
    @prabhatkumar900 ปีที่แล้ว

    Excellent Explanation. Thanks 👍