App model summary
Now that you know a little more about all the individual pieces, let's close the loop and review how it works together:
- Jeamlit apps are Java class main methods that run from top to bottom.
- Every time a user opens a browser tab pointing to your app, the main method is executed and a new session starts.
- As the method executes, Jeamlit draws its output live in a browser.
- Every time a user interacts with a widget, your method is re-executed and Jeamlit redraws its output in the browser.
- The output value of that widget matches the new value during that rerun.
- Methods use the Jeamlit Cache to avoid recomputing expensive functions, so updates happen very fast.
- Session State lets you save information that persists between reruns when you need more than a simple widget.
- Jeamlit apps can contain multiple pages, which are defined in separate Java classes.

Still have questions?
Go to our discussions forum for helpful information and advice from Jeamlit experts.