The Backend Engineering Show with Hussein Nasser

The Backend Engineering Show with Hussein Nasser

By Hussein NasserTechnology
Download on the App Store

The Backend Engineering Show with Hussein Nasser episodes

  • Server-Sent Events Crash Course

    Server-Sent Events or SSE is when the server sends events to the client in a unidirectional manner. In this video I explain Server-Sent Events and compare it to websockets and HTTP and Long Polling.   Source Code https://github.com/hnasr/javascript_playground/tree/master/server-sent-events  Resources https://developer.mozilla.org/en-US/docs/Web/API/EventSource   0:00 Intro 1:50 HTTP 1.0/1.1 3:40 WebSockets 5:00 Server Sent Events 7:30 SSE Use Cases 9:00 SSE Code Example 18:00 SSE Pros & Cons 25:20 Do You Need SSE? 28:30 Summary

    30 min
  • Have a Database User for each Express Route - Best Practices for Backend Application with Postgres

    This is a question from one of you guys that I thought I'd answer in its own video since its loaded.  Q/A - Shark Beak I currently have the same setup for my side project. What do you think about having a 'create table if not exist' running on startup that creates this table? Good/bad?    It is always a good idea to have a specific database user for each route with specific permissions and use connection pooling as much as possible.

    7 min
  • ZeroMQ

    ZeroMQ is an Open Source Messaging Library designed for a high-performance asynchronous messaging library. In this video I discuss this tech and build a simple queue with this tech

    0:00 Intro

    1:48 What is ZeroMQ?

    4:48 Messaging Patterns

    6:42 Socket Types

    8:55 Simple Queue

    11:00 Code

    23:20 ZeroMQ Pros & Cons

    29:30 Summary

    Source Code

    https://github.com/hnasr/javascript_playground/tree/master/zeromq-simplequeue

    Resources

    https://github.com/booksbyus/zguide/tree/master/examples/Node.js

    https://en.wikipedia.org/wiki/ZeroMQ

    https://blog.scottlogic.com/2015/03/20/ZeroMQ-Quick-Intro.html

    http://zguide.zeromq.org/page:chapter3#advanced-request-reply

    Outline

    • What is ZeroMQ?
      • Message library
      • Message Patterns
      • Broker less
      • Simple you build the components that you need
      • Sockets Types
        • REQ
        • REP
        • PUSH
        • PULL
        • ROUTER
        • DEALER
        • Message PatternS
          • Synchronous Request/Response
          • Asynchronous Request/Response
          • Publish/Subscribe
          • Push/Pull
          • Exclusive Pair
          • Example! (Simple Queue (Push Pull))
          • Pros & Cons
            • Pros
              • Simple (meh)
              • Efficient lightweight
              • Great for small use cases
              • Cons
                • You have to write customize
                • If you are building a large distributed message queue then you need to implement all features
                • Feels over-engineered Could be simpler.
                • 30 min
                • Why Turning on HTTP/2 Was a Mistake (My opinion on the lucidchart article)

                  Article: Why Turning on HTTP/2 Was a Mistake - Lucidchart - https://www.lucidchart.com/techblog/2019/04/10/why-turning-on-http2-was-a-mistake/  In this video I discuss this article and my opinion.  That is not a limitation of HTTP/2 but of the application that couldn't handle the request. It is like driving a volvo all your life and then switching to a Ferrari and saying it was a mistake because its too fast. I disagree with the solutions of throttling the LB and I think the app should either be architected to not send this much requests if possible or just add more servers since HTTP is stateless you should be able to scale. HTTP/2 however does use more cpu it is dealing with many streams. The article doesn’t explain if it was H2 all the way though or not.    0:00 Intro 1:17 HTTP/1.1 Current Architecture  4:00 What happened when They Enabled HTTP/2 AT LB 7:00 Why I disagree with the throttling  8:00 Proposed Solutions  12:15 Why HTTP/2 can be CPU intensive   Card at minute 3 playlist http2   🏭 Backend Engineering Videos https://www.youtube.com/playlist?list=PLQnljOFTspQUNnO4p00ua_C5mKTfldiYT  💾 Database Engineering Videos https://www.youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2  🛰 Network Engineering Videos https://www.youtube.com/playlist?list=PLQnljOFTspQUBSgBXilKhRMJ1ACqr7pTr  🏰 Load Balancing and Proxies Videos https://www.youtube.com/playlist?list=PLQnljOFTspQVMeBmWI2AhxULWEeo7AaMC  🐘 Postgres Videos  https://www.youtube.com/playlist?list=PLQnljOFTspQWGrOqslniFlRcwxyY94cjj  🚢Docker https://www.youtube.com/playlist?list=PLQnljOFTspQWsD-rakNw1C20c1JI8UR1r  🧮 Programming Pattern Videos  https://www.youtube.com/playlist?list=PLQnljOFTspQV1emqxKbcP5esAf4zpqWpe  🛡 Web Security Videos https://www.youtube.com/playlist?list=PLQnljOFTspQU3YDMRSMvzflh_qXoz9zfv  🦠 HTTP Videos https://www.youtube.com/playlist?list=PLQnljOFTspQU6zO0drAYHFtkkyfNJw1IO  🐍 Python Videos https://www.youtube.com/playlist?list=PLQnljOFTspQU_M83ARz8mDdr4LThzkBKX  🔆 Javascript Videos  https://www.youtube.com/playlist?list=PLQnljOFTspQWab0g3W6ZaDM6_Buh20EWM  👾Discord Server https://discord.gg/CsFbFce  Become a Member  https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join  Support me on PayPal https://bit.ly/33ENps4  Become a Patreon https://www.patreon.com/join/hnasr?  Stay Awesome, Hussein

                  16 min

                About The Backend Engineering Show with Hussein Nasser

                From the publisher's feed

                Welcome to the Backend Engineering Show podcast with your host Hussein Nasser. If you like software engineering you’ve come to the right place. I discuss all sorts of software engineering technologies and news with specific focus on the backend. All opinions are my own.

                More shows like The Backend Engineering Show with Hussein Nasser

                Freakonomics Radio by Freakonomics Radio + Stitcher

                Freakonomics Radio

                31,929 Listeners

                Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

                Software Engineering Radio - the podcast for professional software developers

                274 Listeners

                Risky Business by Risky Business Media

                Risky Business

                373 Listeners

                Science Vs by Spotify Studios

                Science Vs

                12,159 Listeners

                Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

                Syntax - Tasty Web Development Treats

                987 Listeners

                Darknet Diaries by Jack Rhysider

                Darknet Diaries

                8,070 Listeners

                Practical AI by Daniel Whitenack and Chris Benson

                Practical AI

                210 Listeners

                Within Reason by Alex J O'Connor

                Within Reason

                1,626 Listeners

                All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

                All-In with Chamath, Jason, Sacks & Friedberg

                10,106 Listeners

                Dwarkesh Podcast by Dwarkesh Patel

                Dwarkesh Podcast

                550 Listeners

                Big Technology Podcast by Alex Kantrowitz

                Big Technology Podcast

                513 Listeners

                Hard Fork by The New York Times

                Hard Fork

                5,565 Listeners

                The AI Daily Brief: Artificial Intelligence News and Analysis by Nathaniel Whittemore

                The AI Daily Brief: Artificial Intelligence News and Analysis

                671 Listeners

                Prof G Markets by Vox Media Podcast Network

                Prof G Markets

                1,439 Listeners

                The Pragmatic Engineer by Gergely Orosz

                The Pragmatic Engineer

                74 Listeners