Skip to content

Concurrency Issue / Auto Scaling Issue with yaml file re-write using experimental_login #283

@atangsyd

Description

@atangsyd

Describe the feature

Issue occurs due to requirement to constantly overwrite and update the config file after executing the experimental_login function. When there are a lot of users concurrently logging into the app, the constant need to read and write the config file causes issues. This also becomes an issue when the app is deployed to a container with auto scaling enabled and the config file does not get persisted across containers. This seems to be a problem with the experimental_login function when using Microsoft Oauth2 for authentication as part of step 14.

Use case

When there are over 2000 users of a streamlit app using Microsoft OAuth2 as method of authentication and when auto scaling is required for multiple machines to persist the cookies from authentication. It ensures a seamless user experience.

Alternatives considered

Applying a lock file to the yaml will slow down the streamlit app user experience

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions