Institute of Computer Science
  1. Courses
  2. 2018/19 fall
  3. Web Application Development (LTAT.05.004)
ET
Log in

Web Application Development 2018/19 fall

  • Pealeht
  • Loengud
  • Praktikumid
  • Rühmad
  • Viited

Andmete surumine

Andmete surumine on tehnoloogiline lahendus, mis võimaldab klinet-server lahenduses serveril edastada kliendile andmeid ilma, et klient neid küsiks. Andmete surumise teostamiseks on mitmeid viise. Neist populaarsemad on:

  • Comet
  • HTML 5 WebSockets
  • HTML 5 serveri sündmused

Andmete surumisega on võimalik kasutajat teavitada serveris toimunud sündmustest (nt. lisandunud uudislugu, veebijututuba jms.). Antud kursuses tuleb andmete surumine teostada AJAX või HTML 5 tehnoloogiatega - väliste komponentide (nt. Adobe Flash) kasutamine push tarbeks ei lähe arvesse.

Hindamine

Andmete surumine

  1. Tudengid näitavad kaitsmisel, et teise kasutaja tegevuse või serveri sündmuse peale toimub muutus esimese kasutaja lehel ilma, et esimene kasutaja peaks lehel midagi tegema.
  2. Praktikumijuhendaja veendub, et näidatud funktsionaalsus saavutati AJAX või HTML5 vahenditega ning funktsionaalsus on tegelik (st. muudatus pole lavastatud).

Viiteid

  • Spring Boot WebSocket Example - https://spring.io/guides/gs/messaging-stomp-websocket/
  • Push tehnoloogiaid - http://en.wikipedia.org/wiki/Push_technology
  • Comet - http://en.wikipedia.org/wiki/Comet_%28programming%29
  • Lihtne Long Polling näide (jQuery) - https://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery
  • XMLHTTPRequest juhend raanatust "High Performance Browser Networking" - http://chimera.labs.oreilly.com/books/1230000000545/ch15.html#CORS
  • PHP ja jQuery Long Polling demo - https://github.com/panique/php-long-polling
  • HTML 5 WebSockets API - http://www.w3.org/TR/websockets/
  • HTML 5 serveri sündmuste API - http://dev.w3.org/html5/eventsource/
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment