• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Asynchronous Web Server

Q&A Forum › ESP32 Asynchronous Web Server
0 Vote Up Vote Down
Bernie asked 4 years ago

Hi – what is the difference between the ESP32 asynchronous web server and presumably a ‘synchronous’ web server?

Is the web server provided in Module 4, Unit 2 a ‘synchronous’ web server?

Thanks

Question Tags: ESP32 Web Server
3 Answers
1 Vote Up Vote Down
Best Answer
Steve Mercer answered 4 years ago

My understanding is that synchronous would mean that the server will wait for the client to acknowledge receipt of the data before moving on to respond to other requests. This is generally not what you want from a server as there could be multiple clients and/or multiple requests (HTML, Images, Javascript, CSS etc). You don’t want the server to just handle one request from one client at a time.
 
I don’t believe that there is a library that will do synchronous web serving.

0 Vote Up Vote Down
Bernie answered 4 years ago

Thanks Steve.  That is what I thought.  I think the default for a server is “asynchronous”, i.e. non-blocking.  If there is only a single client it is no longer a server, but just network communication, which may or may not block.  The definition of a server I believe is that it runs in parallel and is non-blocking and expects calls from multiple clients.  The use of “asynchronous” implies that there is a class of servers that are timewise in synchrony with the client, e.g. running off the same clock.  If there is such a thing, it should rather be called a blocking server or a serial server.  Sorry to all for being so pedantic.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Bernie.
Steve’s explanation is correct.
And yes, The example in Module 4, Unit 2 is a “synchronous” web server.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.