Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1621763: na+spcs tutorial #14

Closed
wants to merge 2 commits into from

Conversation

sfc-gh-yxu
Copy link

@sfc-gh-yxu sfc-gh-yxu commented Oct 1, 2024

This tutorial is based on the existing tutorial(https://docs.snowflake.com/en/developer-guide/native-apps/tutorials/na-spcs-tutorial) and it focuses on the na+spcs upgrade. It will be used for our tech writer Steven Leslie to convert into a public doc.

The purpose of this branch is to record discussion and track the changes, and it may not merge into the main branch.

@sfc-gh-tvanderkooy Could you please confirm it covered the major use cases of the na+spcs upgrades

@sfc-gh-bdufour I was told that we prefer to using snowsql in our tutorial, could you please help.

This guide walks through managing versions of a Snowflake Native App with Snowpark Container Services:

  1. Setup Version v1.0: An application package is created, along with schemas, roles, and procedures. A Docker-based echo service and UDF are deployed.

  2. Upgrade to Version v1.1 (Hotfix): A hotfix changes the service endpoint from public to private. The service's YAML file is updated, and a version upgrade applies the fix.

  3. Simulate Upgrade Failure (Version v2.0): The guide simulates an upgrade failure by introducing an error in the setup script. The system automatically reverts to version v1.1, keeping the service operational.

  4. Fix the Error (Version v2.1): After fixing the error, the app is successfully upgraded to version v2.1.

  5. Upgrade to Version v3.0: To create version v3.0, version v1 is dropped (since only two active versions are allowed), and the upgrade is completed.

This tutorial demonstrates managing lifecycle upgrades, dealing with failures, and ensuring service continuity.

@sfc-gh-yxu sfc-gh-yxu closed this Oct 1, 2024
@sfc-gh-yxu sfc-gh-yxu deleted the yxu_SNOW-1621763_na_spcs_tutorial branch October 1, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant