Skip to content

adreams/frontik

 
 

Repository files navigation

What is Frontik?

Frontik is a simple xml aggregator for Yandex-like page generation workflow.

Frontik is developed and mantained by me (Andrey Tatarinov, elephantum@yandex.ru) while working at hh.ru as a part of infrastructure development tasks.

How does it work?

user   frontik   backend1 backend2 ...
====   =======   ======== ========
  |       |         |        |
  |------>|         |        |
  |       |         |        |
  |    (initiate requests)   |
  |       |-------->|        |
  |       |---------+------->|
  |       |----------------------->...
  |       |         |        |
  |    (wait)       |        |
  |       |<-----------------------...
  |       |<--------|        |
  |       |<--------+--------|
  |       |         |        |
  |    (xsl)        |        |
  |       |--\      |        |
  |       |  | xsl  |        |
  |       |<-/      |        |
  |       |         |        |
  |    (done)       |        |
  |<------|         |        |
  |       |         |        |

Typically page generation process is split into several steps:

  1. initiate requests: frontik makes several http-requests to underlying backends.
  • wait for either response or timeout for each backend request
  • aggregate everything we got into one xml document, apply given xsl transformation
  • return the result of transformation to user.

Where is it used?

  • Some of the pages of hh.ru are served using frontik
  • hh.jsx.ru is served entirely using frontik, with sources available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published