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

[EPIC] Orleans 💜 Cosmos DB #36975

Closed
4 of 5 tasks
IEvangelist opened this issue Sep 5, 2023 · 10 comments
Closed
4 of 5 tasks

[EPIC] Orleans 💜 Cosmos DB #36975

IEvangelist opened this issue Sep 5, 2023 · 10 comments
Assignees
Labels
dotnet-orleans/svc okr-curation OKR: Curate content to remove outdated recommendations 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@IEvangelist
Copy link
Member

IEvangelist commented Sep 5, 2023


Associated WorkItem - 156752

@IEvangelist IEvangelist added doc-idea okr-curation OKR: Curate content to remove outdated recommendations dotnet-orleans/svc 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Sep 5, 2023
@IEvangelist IEvangelist self-assigned this Sep 5, 2023
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Sep 5, 2023
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Sep 5, 2023
@markjbrown
Copy link

markjbrown commented Sep 5, 2023

Note from meeting.

Orleans:

Cosmos:

Everything on .NET 8 to align with IGNITE

@seesharprun
Copy link
Contributor

Note from meeting.

Orleans:

Cosmos:

Everything on .NET 8 to align with IGNITE

Additional detail for Cosmos:

@github-actions github-actions bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Sep 6, 2023
@IEvangelist IEvangelist moved this from 🔖 Ready to 🏗 In progress in dotnet/docs September 2023 sprint Sep 19, 2023
@IEvangelist IEvangelist moved this from 🏗 In progress to Slipped in dotnet/docs September 2023 sprint Oct 2, 2023
@seesharprun
Copy link
Contributor

seesharprun commented Oct 3, 2023

I just recently revamped the Quickstart's sample project:

The sample application is still .NET 7 since .NET 8 requires a preview version of Visual Studio.

The next iteration of the quickstart is in a draft PR. The draft PR also includes a grain persistence page for Azure Cosmos DB:

I'm still not happy with the Quickstart. With unlimited time, I would:

  • Add a permanent Dockerfile to the sample application
  • Push the sample application to .NET 8 now
  • Update the sample application to use environment variables instead of a hard-coded connection string.
  • Update the Quickstart to use Azure CLI for all steps. You can deploy easily using az containerapp up and it will deploy all necessary services.
  • Move to three pivots (Azure Cosmos DB for Table, Azure Cosmos DB for NoSQL, Azure Storage)

@seesharprun
Copy link
Contributor

@alexwolfmsft for visibility

@seesharprun
Copy link
Contributor

I have a draft PR open with an update to the shopping cart example in dotnet/samples:

@seesharprun
Copy link
Contributor

I expect to have both draft PRs ready next week and will tag everyone on this thread for review.

@seesharprun
Copy link
Contributor

@seesharprun
Copy link
Contributor

My pull request with the updated shopping cart example is ready for review: dotnet/samples#6213

@seesharprun
Copy link
Contributor

@markjbrown:

I have updated the quickstart and grain persistence articles in this PR:

Here's the changes:

  • The quickstart now uses IsResourceCreationEnabled=true to automatically create the database and container
  • The grain persistence article now sets autoscale at the container level

@seesharprun
Copy link
Contributor

seesharprun commented Oct 26, 2023

After Ignite, I would like to change the sample application (https://github.com/Azure-Samples/build-your-first-orleans-app-aspnetcore) into an AZD template.

Here's what I'm thinking:

  • Name it something more universal like orleans-url-shortener.
  • The template uses in-memory storage by default. It also uses ACA as the host service with mcr.microsoft.com/dotnet/samples:aspnetapp as the default container image and ACR for any images built from the application.
  • Clone and deploy the template with azd init --template orleans-url-shortener and azd provision. This will create the ACR and ACA resources. You could azd up here, but there's no point running the in-memory provider in Azure. You could also debug locally at this point.
  • Edit the template's code to add the Azure Cosmos DB or Azure Storage grains.
  • Change the DEPLOY_AZURE_COSMOS_DB_NOSQL or DEPLOY_AZURE_BLOB_STORAGE environment variables using azd env set DEPLOY_AZURE_COSMOS_DB_NOSQL true or azd env set DEPLOY_AZURE_BLOB_STORAGE true. Setting to true will ensure that these services are created and any managed identities are configured accordingly.
  • Deploy the additional data service and updated code with azd up. This will create the data resources, build the container image, push to ACR, and then deploy the container image to ACA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-orleans/svc okr-curation OKR: Curate content to remove outdated recommendations 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
No open projects
Status: Slipped
Development

No branches or pull requests

4 participants