posit-dev / posit-dev/py-shiny

Scaling Shiny with session affinity on Heroku

Open
#372 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
135
Avg merge
2d 18h
Merged PRs (30d)
21

Description

Helo Shiny Team.

I noticed that the Other hosting options chapter mentions Heroku and session affinity as something that does not quite work as expected:

We had high hopes for Heroku, as they have a documented option for session affinity. However, for reasons we don’t yet understand, the test application consistently fails to pass. We’ll update this page as we find out more.

You also mentioned that if you beat us to a successful deployment, please get in touch about your experiences! So here it is.

I used the test application and its port to R and tested this feature with a containerized setup. I can report that session affinity works as expected on Heroku.

Here are some resources with details about implementation:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Other hosting options chapter linked in the issue, along with the referenced load-balance test application and deployment resources. Update the Heroku session-affinity guidance to reflect the reported successful deployment, with the linked implementation details supporting the revised documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
cloud, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.