GithubHelp home page GithubHelp logo

drch- / dotnet-docs-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/dotnet-docs-samples

0.0 0.0 0.0 30.26 MB

.NET code samples used on https://cloud.google.com

Home Page: https://cloud.google.com/dotnet

License: Apache License 2.0

C# 83.30% PowerShell 6.14% JavaScript 4.82% CSS 0.41% HTML 3.52% F# 0.18% Shell 0.07% Batchfile 0.05% Dockerfile 0.38% Visual Basic .NET 0.06% ASP.NET 1.07%

dotnet-docs-samples's People

Contributors

alixhami avatar amanda-tarafa avatar anshuldavid13 avatar avaksman avatar averikitsch avatar awkoren avatar billyjacobson avatar carieshmarie avatar dependabot[bot] avatar deren-liao avatar dpebot avatar frankyn avatar gguuss avatar jesselovelace avatar jsimonweb avatar jskeet avatar laljikanjareeya avatar melaniedejong avatar meteatamel avatar munkhuushmgl avatar olavloite avatar p42ul avatar peter-zheng-g avatar pheonixblade9 avatar renovate-bot avatar ryanmats avatar sethvargo avatar skuruppu avatar surferjeffatgoogle avatar telpirion avatar

dotnet-docs-samples's Issues

run/functions/concepts - lazy loading?

The docs under general tips includes lazy loading, with each language providing a code example. Optimizations and best practices for Java and Python have their own dedicated page.

The Lazy-Loading sample could just be a Lazy<T> but ASP.NET has more options:

  • splitting controllers so heavy dependencies aren't always injected in the constructor
  • using [FromServices] and injecting into the action method
  • using minimal apis to define per-action dependencies
  • singleton for cacheable computation (possibly beyond the scope of the docs)

Need to consider which makes more sense. Potential topics to include

  • .NET 6 minimal APIs for performance
  • ReadyToRun & building for specific runtime (linux x64)
  • JsonFormatter in default aspnet6 container image and how that works with Cloud Logging
  • Allow alternate schemes
    • client --HTTPS--> Cloud Run proxy --HTTP--> container

Topics that may be less relevant but need a home

  • Multi-arch builds?
  • Multi-stage builds?
  • Buildpacks?
  • Overriding Environment.ProcessorCount (needs analysis)

run/readme.md - Open in Cloud Shell

Nice landing page like in the java repo.

Ideally .NET 6 SDK is added to Cloud Shell. Alternatively, either provide instructions on how to extend the cloud shell image, or provide a Google-owned base image for the samples (less nice).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.