Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
Update faq.rst
Browse files Browse the repository at this point in the history
Added Q/A by @frnknglrt
  • Loading branch information
sanity committed Apr 13, 2021
1 parent 49bcfde commit dcbc7a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ Can I embed Kweb within an Android app?

Yes! Please see `kweb-demos/tree/master/android <https://github.com/kwebio/kweb-demos/tree/master/android>`_ for an example.

I want to deploy a KWeb Application behind a load balancer. What do i need to consider?
---------------------------------------------------------------------------------------

Please make sure to enable session affinity so that repeated requests from the same client end up at the same kweb instance. Kweb does not share it's internal state between multiple instances, so it is important to make sure that each request from a single user ends up at always the same instance.

If the load balancer uses e.g. round robin strategy for load balancing, repeated requests end up at different backend instances and kweb may not function propery.

Example how to setup HAProxy can be found [here](https://www.haproxy.com/de/blog/load-balancing-affinity-persistence-sticky-sessions-what-you-need-to-know/).

What about templates?
---------------------

Expand Down

0 comments on commit dcbc7a8

Please sign in to comment.