Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Async design

Async design

Scheduled Pinned Locked Moved Design and Architecture
asp-netdatabasedesignjsonquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mycroft Holmes
    wrote on last edited by
    #1

    Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?

    Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

    L Richard DeemingR Greg UtasG 3 Replies Last reply
    0
    • M Mycroft Holmes

      Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?

      Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      With a client in the picture, synchronous implies sitting at a locked screen. With perhaps not even a progress bar.

      It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

      1 Reply Last reply
      0
      • M Mycroft Holmes

        Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?

        Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        Anything that calls out to an external system, whether that's a DB query, a network request, or even accessing files on disk, should really be asynchronous. Why tie up a thread waiting for a request to complete when you could let the OS tell you when it's finished and let your thread get on with something else instead? :)


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        M 1 Reply Last reply
        0
        • M Mycroft Holmes

          Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?

          Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

          Greg UtasG Offline
          Greg UtasG Offline
          Greg Utas
          wrote on last edited by
          #4

          I loathe synchronous design for the reasons described in the "Synchronous Messaging" section of this article[^].

          Robust Services Core | Software Techniques for Lemmings | Articles
          The fox knows many things, but the hedgehog knows one big thing.

          <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
          <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

          1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            Anything that calls out to an external system, whether that's a DB query, a network request, or even accessing files on disk, should really be asynchronous. Why tie up a thread waiting for a request to complete when you could let the OS tell you when it's finished and let your thread get on with something else instead? :)


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            Yeah when one applies a few brain cells the answer is obvious - browser paints the screen and then fills the data control :doh:

            Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups