Aller au contenu

TP06 : Server Push Mechanims

In this assignment, you will experiment the different Server Push mechanisms, based on the From basic polling to server push codelab.

Goals

At the end of this assignment, students:

  • will understand the important concepts for implementing server push mechanisms on both the client and server sides;
  • have written an assignment report also delivered to the git repository.

The deliverables of the assignement are:

  • a git repository named “tp06” in your group on “gitlab.forge.hefr.ch” with the Express Node.js server application and the client applications that implement the different mechanisms presented in the From basic polling to server push codelab.
  • a report in pdf format delivered to the git repository.
  • a fix for all issues that have been reported for “tp05”. Issues will be reported at latest 4 days before the deadline for delivering “tp05”. The issues must be reported as closed on git.

Deadline

The deadline for delivering this assignment is given in the semester planning and in the corresponding assignment on Teams.

Report content

Your report must include the following content:

  • For each scenario (basic polling, long polling, SSE, websocket), a screenshot of the debug console of your browser demonstrating that the scenario is correctly implemented and tested. The message sent by the server to the client must contain the name of your group for each scenario.
  • Based on RFC 6202 - “Known Issues and Best Practices for the Use of Long Polling and Streaming in Bidirectional HTTP”, describe:

    1. One advantage of long polling over basic polling
    2. One issue of the long polling approach
    3. One advantage of HTTP streaming/SSE over long polling
    4. One issue of the HTTP streaming/SSE approach

Report

The report must follow the following guidelines:

  • It must be written in French or English.
  • One title page with at least:
    • the school name and logo (official logo)
    • the course name : Module Application des données : Développement back-end
    • the title of the document : “Travail Pratique 6 : Server push”
    • your group number
    • the authors’ name
    • the report delivery date
  • One short introduction for describing the context and goals
  • A summary of the concepts that are important and that you should retain/fully understand, by commenting whether
    • the concept is not well understood (non acquis);
    • the concept is essentially understood, but some points remain to be exercised; (acquis, à exercer);
    • the concept is fully undertood (acquis).
  • The report must include the content as described in the previous section.
  • Some conclusions like what you have liked or not, remarks on how the codelab or assignement can be improved, and the number of hours that you have spent for each student of the group (outside hours in the classroom).

Important

Deliver your report based on instructions received during the lesson and according to the schedule. Your document must be named “report06.pdf”.