• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTMX - Does it promotes a back to monolith (vs microservices) approach?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Server side rendering and Server side sessions do promote a classical approach (monolith) to web applications, vs a more distributed (microservices, but also frontend) application architecture. Is it true? I was looking for a way to have a microservice / microfrontend approach...
 
Author
Posts: 12
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I think that is not really true. With microservices, you usually have a backend-for-frontend (BFF) that orchestrates the calls to the other microservices and prepares the JSON in an easy-to-use format for the Single Page Application. If you do server-side rendering, the BFF itself could be the server-side renderer in a microservices architecture.

regards,

Wim
 
Luca Botti
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply - really interesting
 
Bartender
Posts: 217
7
Android Python Oracle Postgres Database Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Wim Deblauwe wrote:

I think that is not really true. With microservices, you usually have a backend-for-frontend (BFF) that orchestrates the calls to the other microservices and prepares the JSON in an easy-to-use format for the Single Page Application. If you do server-side rendering, the BFF itself could be the server-side renderer in a microservices architecture.



Does this imply that htmx does not make use of any kind of Ajax or XMLHttpRequest ? Thus, is server-side rendering the only option to update a page?

Best Regards,
Roland
 
Saloon Keeper
Posts: 7601
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roland Mueller wrote:Does this imply that htmx does not make use of any kind of Ajax or XMLHttpRequest ? Thus, is server-side rendering the only option to update a page?


To the contrary, I think HTMX makes heavy use of XMLHttpRequest (or websockets). It just means that the HTML is prepared ("rendered") on the server, and then sent in small chunks to the frontend, without having to update the entire page. So that's in contrast to a web service approach that prepares the data on the server, and then performs the rendering into HTML on the frontend.
 
Wim Deblauwe
Author
Posts: 12
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is correct Tim
 
You don't like waffles? Well, do you like this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic