06-05-2020, 06:58 AM
Introducing Project Tye
<div style="margin: 5px 5% 10px 5%;"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.jpg" width="150" height="150" title="" alt="" /></div><div><div class="row justify-content-center">
<div class="col-md-4">
<div><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.jpg" width="58" height="58" alt="Amiee Lo" class="avatar avatar-58 wp-user-avatar wp-user-avatar-58 alignnone photo"></p>
<p>Amiee</p>
</div>
</div>
</div>
<div class="entry-meta">
<p>May 21st, 2020</p>
</p></div>
<p><!-- .entry-meta --> </p>
<p><a href="https://github.com/dotnet/tye">Project Tye</a> is an experimental developer tool that makes developing, testing, and deploying microservices and distributed applications easier.</p>
<p>When building an app made up of multiple projects, you often want to run more than one at a time, such as a website that communicates with a backend API or several services all communicating with each other. Today, this can be difficult to setup and not as smooth as it could be, and it’s only the very first step in trying to get started with something like building out a distributed application. Once you have an inner-loop experience there is then a, sometimes steep, learning curve to get your distributed app onto a platform such as Kubernetes.</p>
<p>The project has two main goals:</p>
<ol>
<li>Making development of microservices easier by:
<ul>
<li>Running many services with one command</li>
<li>Using dependencies in containers</li>
<li>Discovering addresses of other services using simple conventions</li>
</ul>
</li>
<li>Automating deployment of .NET applications to Kubernetes by:
<ul>
<li>Automatically containerizing .NET applications</li>
<li>Generating Kubernetes manifests with minimal knowledge or configuration</li>
<li>Using a single configuration file</li>
</ul>
</li>
</ol>
<p>If you have an app that talks to a database, or an app that is made up of a couple of different processes that communicate with each other, then we think Tye will help ease some of the common pain points you’ve experienced.</p>
<p>We have recently demonstrated Tye in a few Build sessions that we encourage you to watch, <a href="https://aka.ms/Build2020AppDev-CloudNativeApps">Cloud Native Apps with .NET and AKS</a> and <a href="https://aka.ms/dotnetjourney">Journey to one .NET</a></p>
<h3>Installation</h3>
<p>To get started with Tye, you will first need to have .<a href="https://dotnet.microsoft.com/download">NET Core 3.1</a> installed on your machine.</p>
<p>Tye can then be installed as a global tool using the following command:</p>
<pre><code>dotnet tool install -g Microsoft.Tye --version "0.2.0-alpha.20258.3"
</code></pre>
<h3>Running a single service</h3>
<p>Tye makes it very easy to run single applications. To demonstrate this:</p>
<p>1. Make a new folder called microservices and navigate to it:</p>
<pre><code>mkdir microservices
cd microservices
</code></pre>
<p>2. Then create a frontend project:</p>
<pre><code>dotnet new razor -n frontend
</code></pre>
<p>3. Now run this project using <code>tye run</code>:</p>
<pre><code>tye run frontend
</code></pre>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.png" alt="Image tye run output" width="1995" height="431" class="alignnone size-full wp-image-23720"></a> The above displays how Tye is building, running, and monitoring the frontend application.</p>
<p>One key feature from <code>tye run</code> is a dashboard to view the state of your application. Navigate to <a href="http://localhost:8000">http://localhost:8000</a> to see the dashboard running.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-1.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-1.png" alt="Image tye dashboard" width="3239" height="1058" class="alignnone size-full wp-image-23723"></a></p>
<p>The dashboard is the UI for Tye that displays a list of all of your services. The <code>Bindings</code> column has links to the listening URLs of the service. The <code>Logs</code> column allows you to view the streaming logs for the service.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-2.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-2.png" alt="Image tye logs" width="3240" height="967" class="alignnone size-full wp-image-23726"></a></p>
<p>Services written using ASP.NET Core will have their listening ports assigned randomly if not explicitly configured. This is useful to avoid common issues like port conflicts.</p>
<h3>Running multiple services</h3>
<p>Instead of just a single application, suppose we have a multi-application scenario where our frontend project now needs to communicate with a backend project. If you haven’t already, stop the existing <code>tye run</code> command using <code>Ctrl + C</code>.</p>
<p>1. Create a backend API that the frontend will call inside of the <code>microservices/</code> folder.</p>
<pre><code>dotnet new webapi -n backend
</code></pre>
<p>2. Then create a solution file and add both projects:</p>
<pre><code>dotnet new sln
dotnet sln add frontend backend
</code></pre>
<p>You should now have a solution called <code>microservices.sln</code> that references the frontend and backend projects.</p>
<p>3. Run <code>tye</code> in the folder with the solution.</p>
<pre><code>tye run
</code></pre>
<p>The dashboard should show both the frontend and backend services. You can navigate to both of them through either the dashboard of the url outputted by tye run.</p>
<blockquote>
<p><em>The backend service in this example was created using the webapi project template and will return an HTTP 404 for its root URL.</em></p>
</blockquote>
<h3>Getting the frontend to communicate with the backend</h3>
<p>Now that we have two applications running, let’s make them communicate.</p>
<p>To get both of these applications communicating with each other, Tye utilizes service discovery. In general terms, service discovery describes the process by which one service figures out the address of another service. Tye uses environment variables for specifying connection strings and URIs of services.</p>
<p>The simplest way to use Tye’s service discovery is through the <code>Microsoft.Extensions.Configuration</code> system – available by default in ASP.NET Core or .NET Core Worker projects. In addition to this, we provide the <code>Microsoft.Tye.Extensions.Configuration</code> package with some Tye-specific extensions layered on top of the configuration system.</p>
<p>If you want to learn more about Tye’s philosophy on service discovery and see detailed usage examples, check out this <a href="https://github.com/dotnet/tye/blob/master/docs/reference/service_discovery.md">reference document</a>.</p>
<p>1. If you haven’t already, stop the existing <code>tye run</code> command using <code>Ctrl + C</code>. Open the solution in your editor of choice.</p>
<p>2. Add a file <code>WeatherForecast.cs</code> to the <code>frontend</code> project.</p>
<pre><code>using System; namespace frontend { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
</code></pre>
<p>This will match the backend <code>WeatherForecast.cs</code>.</p>
<p>3. Add a file <code>WeatherClient.cs</code> to the <code>frontend</code> project with the following contents:</p>
<pre><code>using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks; namespace frontend
{ public class WeatherClient { private readonly JsonSerializerOptions options = new JsonSerializerOptions() { PropertyNameCaseInsensitive = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase, }; private readonly HttpClient client; public WeatherClient(HttpClient client) { this.client = client; } public async Task<WeatherForecast[]> GetWeatherAsync() { var responseMessage = await this.client.GetAsync("/weatherforecast"); var stream = await responseMessage.Content.ReadAsStreamAsync(); return await JsonSerializer.DeserializeAsync<WeatherForecast[]>(stream, options); } }
}
</code></pre>
<p>4. Add a reference to the <code>Microsoft.Tye.Extensions.Configuration</code> package to the frontend project</p>
<pre><code>dotnet add frontend/frontend.csproj package Microsoft.Tye.Extensions.Configuration --version "0.2.0-*"
</code></pre>
<p>5. Now register this client in <code>frontend</code> by adding the following to the existing <code>ConfigureServices</code> method to the existing <code>Startup.cs</code> file:</p>
<pre><code>...
public void ConfigureServices(IServiceCollection services)
{ services.AddRazorPages(); /** Add the following to wire the client to the backend **/ services.AddHttpClient<WeatherClient>(client => { client.BaseAddress = Configuration.GetServiceUri("backend"); }); /** End added code **/
}
...
</code></pre>
<p>This will wire up the <code>WeatherClient</code> to use the correct URL for the <code>backend</code> service.</p>
<p>6. Add a <code>Forecasts</code> property to the <code>Index</code> page model under <code>Pages\Index.cshtml.cs</code> in the <code>frontend</code> project.</p>
<pre><code>... public WeatherForecast[] Forecasts { get; set; }
...
</code></pre>
<p>7. Change the <code>OnGet</code> method to take the <code>WeatherClient</code> to call the <code>backend</code> service and store the result in the <code>Forecasts</code> property:</p>
<pre><code>... public async Task OnGet([FromServices]WeatherClient client) { Forecasts = await client.GetWeatherAsync(); }
...
</code></pre>
<p>8. Change the <code>Index.cshtml</code> razor view to render the <code>Forecasts</code> property in the razor page:</p>
<pre><code>@page
@model IndexModel
@{ ViewData["Title"] = "Home page";
} <div class="text-center"> <h1 class="display-4">Welcome</h1> <p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div> Weather Forecast: <table class="table"> <thead> <tr> <th>Date</th> <th>Temp. ©</th> <th>Temp. (F)</th> <th>Summary</th> </tr> </thead> <tbody> @foreach (var forecast in @Model.Forecasts) { <tr> <td>@forecast.Date.ToShortDateString()</td> <td>@forecast.TemperatureC</td> <td>@forecast.TemperatureF</td> <td>@forecast.Summary</td> </tr> } </tbody>
</table>
</code></pre>
<p>9. Run the project with <code>tye run</code> and the <code>frontend</code> service should be able to successfully call the <code>backend</code> service!</p>
<p>When you visit the <code>frontend</code> service you should see a table of weather data. This data was produced randomly in the <code>backend</code> service. The fact that you’re seeing it in a web UI in the <code>frontend</code> means that the services are able to communicate. Unfortunately, this doesn’t work out of the box on Linux right now due to how self-signed certificates are handled, please see the workaround <a href="https://github.com/dotnet/tye/blob/master/docs/tutorials/hello-tye/00_run_locally.md#troubleshooting">here</a></p>
<h3>Tye’s configuration schema</h3>
<p>Tye has a optional configuration file (<code>tye.yaml</code>) to enable customizing settings. This file contains all of your projects and external dependencies. If you have an existing solution, Tye will automatically populate this with all of your current projects.</p>
<p>To initalize this file, you will need to run the following command in the <code>microservices</code> directory to generate a default <code>tye.yaml</code> file:</p>
<pre><code>tye init
</code></pre>
<p>The contents of the <code>tye.yaml</code> should look like this:</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-3.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-3.png" alt="Image tye yaml" width="1025" height="393" class="alignnone size-full wp-image-23737"></a></p>
<p>The top level scope (like the name node) is where global settings are applied.</p>
<p><code>tye.yaml</code> lists all of the application’s services under the services node. This is the place for per-service configuration.</p>
<p>To learn more about Tye’s yaml specifications and schema, you can check it out <a href="https://github.com/dotnet/tye/blob/master/docs/reference/schema.md">here</a> in Tye’s repository on Github.</p>
<blockquote>
<p><em>We provide a json-schema for <code>tye.yaml</code> and some editors support json-schema for completion and validation of yaml files. See <a href="https://github.com/dotnet/tye/blob/master/src/schema/README.md">json-schema</a> for instructions.</em></p>
</blockquote>
<h3>Adding external dependencies (Redis)</h3>
<p>Not only does Tye make it easy to run and deploy your applications to Kubernetes, it’s also fairly simple to add external dependencies to your applications as well. We will now add redis to the frontend and backend application to store data.</p>
<p>Tye can use Docker to run images that run as part of your application. Make sure that <a href="https://docs.docker.com/get-docker/">Docker</a> is installed on your machine.</p>
<p>1. Change the <code>WeatherForecastController.Get()</code> method in the <code>backend</code> project to cache the weather information in redis using an <code>IDistributedCache</code>.</p>
<p>2. Add the following <code>using</code>‘s to the top of the file:</p>
<pre><code>using Microsoft.Extensions.Caching.Distributed;
using System.Text.Json;
</code></pre>
<p>3. Update <code>Get()</code>:</p>
<pre><code>[HttpGet]
public async Task<string> Get([FromServices]IDistributedCache cache)
{ var weather = await cache.GetStringAsync("weather"); if (weather == null) { var rng = new Random(); var forecasts = Enumerable.Range(1, 5).Select(index => new WeatherForecast { Date = DateTime.Now.AddDays(index), TemperatureC = rng.Next(-20, 55), Summary = Summaries[rng.Next(Summaries.Length)] }) .ToArray(); weather = JsonSerializer.Serialize(forecasts); await cache.SetStringAsync("weather", weather, new DistributedCacheEntryOptions { AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(5) }); } return weather;
}
</code></pre>
<p>This will store the weather data in Redis with an expiration time of 5 seconds.</p>
<p>4. Add a package reference to <code>Microsoft.Extensions.Caching.StackExchangeRedis</code> in the backend project:</p>
<pre><code>cd backend/
dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis
cd ..
</code></pre>
<p>5. Modify <code>Startup.ConfigureServices</code> in the <code>backend</code> project to add the redis <code>IDistributedCache</code> implementation.</p>
<pre><code> public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddStackExchangeRedisCache(o => { o.Configuration = Configuration.GetConnectionString("redis"); }); }
</code></pre>
<p>The above configures redis to the configuration string for the <code>redis</code> service injected by the <code>tye</code> host.</p>
<p>6. Modify <code>tye.yaml</code> to include redis as a dependency.</p>
<pre><code>name: microservice
services:
- name: backend project: backend\backend.csproj
- name: frontend project: frontend\frontend.csproj
- name: redis image: redis bindings: - port: 6379 connectionString: "${host}:${port}"
- name: redis-cli image: redis args: "redis-cli -h redis MONITOR"
</code></pre>
<p>We’ve added 2 services to the <code>tye.yaml</code> file. The <code>redis</code> service itself and a <code>redis-cli</code> service that we will use to watch the data being sent to and retrieved from redis.</p>
<blockquote>
<p><em>The <code>"${host}:${port}"</code> format in the <code>connectionString</code> property will substitute the values of the host and port number to produce a connection string that can be used with StackExchange.Redis</em>.</p>
</blockquote>
<p>7. Run the <code>tye</code> command line in the solution root</p>
<blockquote>
<p><em>Make sure your command-line is in the <code>microservices/</code> directory. One of the previous steps had you change directories to edit a specific project</em>.</p>
</blockquote>
<pre><code>tye run
</code></pre>
<p>Navigate to <a href="http://localhost:8000">http://localhost:8000</a> to see the dashboard running. Now you will see both <code>redis</code> and the <code>redis-cli</code> running listed in the dashboard.</p>
<p>Navigate to the <code>frontend</code> application and verify that the data returned is the same after refreshing the page multiple times. New content will be loaded every 5 seconds, so if you wait that long and refresh again, you should see new data. You can also look at the <code>redis-cli</code> logs using the dashboard and see what data is being cached in redis.</p>
<blockquote>
<p><em>The <code>"${host}:${port}"</code> format in the <code>connectionString</code> property will substitute the values of the host and port number to produce a connection string that can be used with StackExchange.Redis</em>.</p>
</blockquote>
<h3>Deploying to Kubernetes</h3>
<p>Tye makes the process of deploying your application to Kubernetes very simple with minimal knowlege or configuration required.</p>
<blockquote>
<p><em>Tye will use your current credentials for pushing Docker images and accessing Kubernetes clusters. If you have configured kubectl with a context already, that’s what <a href="https://devblogs.microsoft.com/docs/reference/commandline/tye-deploy.md"><code>tye deploy</code></a> is going to use!</em></p>
</blockquote>
<p>Prior to deploying your application, make sure to have the following:</p>
<ol>
<li><a href="https://www.docker.com/products/docker-desktop">Docker</a> installed based off on your operating system</li>
<li>A container registry. Docker by default will create a container registry on <a href="https://hub.docker.com/">DockerHub</a>. You could also use <a href="https://azure.microsoft.com/en-us/services/container-registry/">Azure Container Registry</a> (ACR) or another container registry of your choice.</li>
<li>A Kubernetes Cluster. There are many different options here, including:
</li>
</ol>
<blockquote>
<p><em>If you choose a container registry provided by a cloud provider (other than Dockerhub), you will likely have to take some steps to configure your kubernetes cluster to allow access. Follow the instructions provided by your cloud provider.</em></p>
</blockquote>
<h3>Deploying Redis</h3>
<p><code>tye deploy</code> will not deploy the redis configuration, so you need to deploy it first by running:</p>
<pre><code>kubectl apply -f https://raw.githubusercontent.com/dotnet...redis.yaml
</code></pre>
<p>This will create a deployment and service for redis.</p>
<h3>Tye deploy</h3>
<p>You can deploy your application by running the follow command:</p>
<pre><code>tye deploy --interactive
</code></pre>
<blockquote>
<p><em>Enter the Container Registry (ex: <code>example.azurecr.io</code> for Azure or <code>example</code> for dockerhub):</em></p>
</blockquote>
<p>You will be prompted to enter your container registry. This is needed to tag images, and to push them to a location accessible by kubernetes.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-4.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-4.png" alt="Image tye deploy output" width="1761" height="111" class="alignnone size-full wp-image-23743"></a></p>
<p>If you are using dockerhub, the registry name will be your dockerhub username. If you are using a standalone container registry (for instance from your cloud provider), the registry name will look like a hostname, eg: <code>example.azurecr.io</code>.</p>
<p>You’ll also be prompted for the connection string for redis.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-5.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-5.png" alt="Image redis connection string" width="1214" height="95" class="alignnone size-full wp-image-23744"></a></p>
<p>Enter the following to use the instance that you just deployed:</p>
<pre><code>redis:6379
</code></pre>
<p><code>tye deploy</code> will create Kubernetes secret to store the connection string.</p>
<blockquote>
<p><em>–interactive is needed here to create the secret. This is a one-time configuration step. In a CI/CD scenario you would not want to have to specify connection strings over and over, deployment would rely on the existing configuration in the cluster.</em></p>
</blockquote>
<p>Tye uses Kubernetes secrets to store connection information about dependencies like redis that might live outside the cluster. Tye will automatically generate mappings between service names, binding names, and secret names.</p>
<p><code>tye deploy</code> does many different things to deploy an application to Kubernetes. It will:</p>
<ul>
<li>Create a docker image for each project in your application.</li>
<li>Push each docker image to your container registry.</li>
<li>Generate a Kubernetes <code>Deployment</code> and <code>Service</code> for each project.</li>
<li>Apply the generated <code>Deployment</code> and <code>Service</code> to your current Kubernetes context.</li>
</ul>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-6.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-6.png" alt="Image tye deploy building images" width="640" height="324" class="alignnone size-large wp-image-23745"></a></p>
<p>You should now see three pods running after deploying.</p>
<pre><code>kubectl get pods NAME READY STATUS RESTARTS AGE
backend-ccfcd756f-xk2q9 1/1 Running 0 85m
frontend-84bbdf4f7d-6r5zp 1/1 Running 0 85m
redis-5f554bd8bd-rv26p 1/1 Running 0 98m
</code></pre>
<p>You can visit the frontend application, you will need to port-forward to access the frontend from outside the cluster.</p>
<pre><code>kubectl port-forward svc/frontend 5000:80
</code></pre>
<p>Now navigate to http://localhost:5000 to view the frontend application working on Kubernetes.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-7.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-7.png" alt="Image kubernetes portforward" width="665" height="227" class="alignnone size-full wp-image-23746"></a></p>
<blockquote>
<p><em>Currently tye does not automatically enable TLS within the cluster, and so communication takes place over HTTP instead of HTTPS. This is typical way to deploy services in kubernetes – we may look to enable TLS as an option or by default in the future.</em></p>
</blockquote>
<h3>Adding a registry to tye.yaml</h3>
<p>If you want to use <code>tye deploy</code> as part of a CI/CD system, it’s expected that you’ll have a <code>tye.yaml</code> file initialized. You will then need to add a container registry to <code>tye.yaml</code>. Based on what container registry you configured, add the following line in the <code>tye.yaml</code> file:</p>
<pre><code>registry: <registry_name>
</code></pre>
<p>Now it’s possible to use <code>tye deploy</code> without <code>--interactive</code> since the registry is stored as part of configuration.</p>
<blockquote>
<p><em>This step may not make much sense if you’re using tye.yaml to store a personal Dockerhub username. A more typical use case would storing the name of a private registry for use in a CI/CD system</em>.</p>
</blockquote>
<p>For a conceptual overview of how Tye behaves when using <code>tye deploy</code> for deployment, check out this <a href="https://github.com/dotnet/tye/blob/master/docs/reference/deployment.md">document</a>.</p>
<h3>Undeploying your application</h3>
<p>After deploying and playing around with the application, you may want to remove all resources associated from the Kubernetes cluster. You can remove resources by running:</p>
<pre><code>tye undeploy
</code></pre>
<p>This will remove all deployed resources. If you’d like to see what resources would be deleted, you can run:</p>
<pre><code>tye undeploy --what-if
</code></pre>
<p>If you want to experiment more with using Tye, we have a variety of different sample applications and tutorials that you can walk through, check them out down below:</p>
<p>We have been diligently working on adding new capabilities and integrations to continuously improve Tye. Here are some integrations below that we have recently released. There is also information provided on how to get started for each of these:</p>
<ul>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/ingress.md">Ingress</a> – <em>to expose pods/services created to the public internet</em>.</li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/tutorials/hello-tye/02_add_redis.md">Redis</a> – <em>to store data, cache, or as a message broker</em>.</li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/dapr.md">Dapr</a> – <em>for integrating a Dapr application with Tye</em>.</li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/distributed_tracing.md">Zipkin</a> – <em>using Zipkin for distributed tracing</em>. </li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/logging.md">Elastic Stack</a> – <em>using Elastic Stack for logging</em>.</li>
</ul>
<p>While we are excited about the promise Tye holds, it’s an experimental project and not a committed product. During this experimental phase we expect to engage deeply with anyone trying out Tye to hear feedback and suggestions. The point of doing experiments in the open is to help us explore the space as much as we can and use what we learn to determine what we should be building and shipping in the future.</p>
<p>Project Tye is currently commited as an experiment until .NET 5 ships. At which point we will be evaluating what we have and all that we’ve learnt to decide what we should do in the future.</p>
<p>Our goal is to <a href="https://github.com/dotnet/tye/releases">ship every month</a>, and some new capabilities that we are looking into for Tye include:</p>
<ul>
<li>More deployment targets</li>
<li>Sidecar support</li>
<li>Connected development</li>
<li>Database migrations</li>
</ul>
<p>We are excited by the potential Tye has to make developing distributed applications easier and we need your feedback to make sure it reaches that potential. We’d really love for you to try it out and tell us what you think, there is a link to a survey on the Tye dashboard that you can fill out or you can create issues and talk to us on <a href="https://github.com/dotnet/tye">GitHub</a>. Either way we’d love to hear what you think.</p>
</div>
https://www.sickgaming.net/blog/2020/05/...oject-tye/
<div style="margin: 5px 5% 10px 5%;"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.jpg" width="150" height="150" title="" alt="" /></div><div><div class="row justify-content-center">
<div class="col-md-4">
<div><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.jpg" width="58" height="58" alt="Amiee Lo" class="avatar avatar-58 wp-user-avatar wp-user-avatar-58 alignnone photo"></p>
<p>Amiee</p>
</div>
</div>
</div>
<div class="entry-meta">
<p>May 21st, 2020</p>
</p></div>
<p><!-- .entry-meta --> </p>
<p><a href="https://github.com/dotnet/tye">Project Tye</a> is an experimental developer tool that makes developing, testing, and deploying microservices and distributed applications easier.</p>
<p>When building an app made up of multiple projects, you often want to run more than one at a time, such as a website that communicates with a backend API or several services all communicating with each other. Today, this can be difficult to setup and not as smooth as it could be, and it’s only the very first step in trying to get started with something like building out a distributed application. Once you have an inner-loop experience there is then a, sometimes steep, learning curve to get your distributed app onto a platform such as Kubernetes.</p>
<p>The project has two main goals:</p>
<ol>
<li>Making development of microservices easier by:
<ul>
<li>Running many services with one command</li>
<li>Using dependencies in containers</li>
<li>Discovering addresses of other services using simple conventions</li>
</ul>
</li>
<li>Automating deployment of .NET applications to Kubernetes by:
<ul>
<li>Automatically containerizing .NET applications</li>
<li>Generating Kubernetes manifests with minimal knowledge or configuration</li>
<li>Using a single configuration file</li>
</ul>
</li>
</ol>
<p>If you have an app that talks to a database, or an app that is made up of a couple of different processes that communicate with each other, then we think Tye will help ease some of the common pain points you’ve experienced.</p>
<p>We have recently demonstrated Tye in a few Build sessions that we encourage you to watch, <a href="https://aka.ms/Build2020AppDev-CloudNativeApps">Cloud Native Apps with .NET and AKS</a> and <a href="https://aka.ms/dotnetjourney">Journey to one .NET</a></p>
<h3>Installation</h3>
<p>To get started with Tye, you will first need to have .<a href="https://dotnet.microsoft.com/download">NET Core 3.1</a> installed on your machine.</p>
<p>Tye can then be installed as a global tool using the following command:</p>
<pre><code>dotnet tool install -g Microsoft.Tye --version "0.2.0-alpha.20258.3"
</code></pre>
<h3>Running a single service</h3>
<p>Tye makes it very easy to run single applications. To demonstrate this:</p>
<p>1. Make a new folder called microservices and navigate to it:</p>
<pre><code>mkdir microservices
cd microservices
</code></pre>
<p>2. Then create a frontend project:</p>
<pre><code>dotnet new razor -n frontend
</code></pre>
<p>3. Now run this project using <code>tye run</code>:</p>
<pre><code>tye run frontend
</code></pre>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye.png" alt="Image tye run output" width="1995" height="431" class="alignnone size-full wp-image-23720"></a> The above displays how Tye is building, running, and monitoring the frontend application.</p>
<p>One key feature from <code>tye run</code> is a dashboard to view the state of your application. Navigate to <a href="http://localhost:8000">http://localhost:8000</a> to see the dashboard running.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-1.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-1.png" alt="Image tye dashboard" width="3239" height="1058" class="alignnone size-full wp-image-23723"></a></p>
<p>The dashboard is the UI for Tye that displays a list of all of your services. The <code>Bindings</code> column has links to the listening URLs of the service. The <code>Logs</code> column allows you to view the streaming logs for the service.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-2.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-2.png" alt="Image tye logs" width="3240" height="967" class="alignnone size-full wp-image-23726"></a></p>
<p>Services written using ASP.NET Core will have their listening ports assigned randomly if not explicitly configured. This is useful to avoid common issues like port conflicts.</p>
<h3>Running multiple services</h3>
<p>Instead of just a single application, suppose we have a multi-application scenario where our frontend project now needs to communicate with a backend project. If you haven’t already, stop the existing <code>tye run</code> command using <code>Ctrl + C</code>.</p>
<p>1. Create a backend API that the frontend will call inside of the <code>microservices/</code> folder.</p>
<pre><code>dotnet new webapi -n backend
</code></pre>
<p>2. Then create a solution file and add both projects:</p>
<pre><code>dotnet new sln
dotnet sln add frontend backend
</code></pre>
<p>You should now have a solution called <code>microservices.sln</code> that references the frontend and backend projects.</p>
<p>3. Run <code>tye</code> in the folder with the solution.</p>
<pre><code>tye run
</code></pre>
<p>The dashboard should show both the frontend and backend services. You can navigate to both of them through either the dashboard of the url outputted by tye run.</p>
<blockquote>
<p><em>The backend service in this example was created using the webapi project template and will return an HTTP 404 for its root URL.</em></p>
</blockquote>
<h3>Getting the frontend to communicate with the backend</h3>
<p>Now that we have two applications running, let’s make them communicate.</p>
<p>To get both of these applications communicating with each other, Tye utilizes service discovery. In general terms, service discovery describes the process by which one service figures out the address of another service. Tye uses environment variables for specifying connection strings and URIs of services.</p>
<p>The simplest way to use Tye’s service discovery is through the <code>Microsoft.Extensions.Configuration</code> system – available by default in ASP.NET Core or .NET Core Worker projects. In addition to this, we provide the <code>Microsoft.Tye.Extensions.Configuration</code> package with some Tye-specific extensions layered on top of the configuration system.</p>
<p>If you want to learn more about Tye’s philosophy on service discovery and see detailed usage examples, check out this <a href="https://github.com/dotnet/tye/blob/master/docs/reference/service_discovery.md">reference document</a>.</p>
<p>1. If you haven’t already, stop the existing <code>tye run</code> command using <code>Ctrl + C</code>. Open the solution in your editor of choice.</p>
<p>2. Add a file <code>WeatherForecast.cs</code> to the <code>frontend</code> project.</p>
<pre><code>using System; namespace frontend { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
</code></pre>
<p>This will match the backend <code>WeatherForecast.cs</code>.</p>
<p>3. Add a file <code>WeatherClient.cs</code> to the <code>frontend</code> project with the following contents:</p>
<pre><code>using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks; namespace frontend
{ public class WeatherClient { private readonly JsonSerializerOptions options = new JsonSerializerOptions() { PropertyNameCaseInsensitive = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase, }; private readonly HttpClient client; public WeatherClient(HttpClient client) { this.client = client; } public async Task<WeatherForecast[]> GetWeatherAsync() { var responseMessage = await this.client.GetAsync("/weatherforecast"); var stream = await responseMessage.Content.ReadAsStreamAsync(); return await JsonSerializer.DeserializeAsync<WeatherForecast[]>(stream, options); } }
}
</code></pre>
<p>4. Add a reference to the <code>Microsoft.Tye.Extensions.Configuration</code> package to the frontend project</p>
<pre><code>dotnet add frontend/frontend.csproj package Microsoft.Tye.Extensions.Configuration --version "0.2.0-*"
</code></pre>
<p>5. Now register this client in <code>frontend</code> by adding the following to the existing <code>ConfigureServices</code> method to the existing <code>Startup.cs</code> file:</p>
<pre><code>...
public void ConfigureServices(IServiceCollection services)
{ services.AddRazorPages(); /** Add the following to wire the client to the backend **/ services.AddHttpClient<WeatherClient>(client => { client.BaseAddress = Configuration.GetServiceUri("backend"); }); /** End added code **/
}
...
</code></pre>
<p>This will wire up the <code>WeatherClient</code> to use the correct URL for the <code>backend</code> service.</p>
<p>6. Add a <code>Forecasts</code> property to the <code>Index</code> page model under <code>Pages\Index.cshtml.cs</code> in the <code>frontend</code> project.</p>
<pre><code>... public WeatherForecast[] Forecasts { get; set; }
...
</code></pre>
<p>7. Change the <code>OnGet</code> method to take the <code>WeatherClient</code> to call the <code>backend</code> service and store the result in the <code>Forecasts</code> property:</p>
<pre><code>... public async Task OnGet([FromServices]WeatherClient client) { Forecasts = await client.GetWeatherAsync(); }
...
</code></pre>
<p>8. Change the <code>Index.cshtml</code> razor view to render the <code>Forecasts</code> property in the razor page:</p>
<pre><code>@page
@model IndexModel
@{ ViewData["Title"] = "Home page";
} <div class="text-center"> <h1 class="display-4">Welcome</h1> <p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div> Weather Forecast: <table class="table"> <thead> <tr> <th>Date</th> <th>Temp. ©</th> <th>Temp. (F)</th> <th>Summary</th> </tr> </thead> <tbody> @foreach (var forecast in @Model.Forecasts) { <tr> <td>@forecast.Date.ToShortDateString()</td> <td>@forecast.TemperatureC</td> <td>@forecast.TemperatureF</td> <td>@forecast.Summary</td> </tr> } </tbody>
</table>
</code></pre>
<p>9. Run the project with <code>tye run</code> and the <code>frontend</code> service should be able to successfully call the <code>backend</code> service!</p>
<p>When you visit the <code>frontend</code> service you should see a table of weather data. This data was produced randomly in the <code>backend</code> service. The fact that you’re seeing it in a web UI in the <code>frontend</code> means that the services are able to communicate. Unfortunately, this doesn’t work out of the box on Linux right now due to how self-signed certificates are handled, please see the workaround <a href="https://github.com/dotnet/tye/blob/master/docs/tutorials/hello-tye/00_run_locally.md#troubleshooting">here</a></p>
<h3>Tye’s configuration schema</h3>
<p>Tye has a optional configuration file (<code>tye.yaml</code>) to enable customizing settings. This file contains all of your projects and external dependencies. If you have an existing solution, Tye will automatically populate this with all of your current projects.</p>
<p>To initalize this file, you will need to run the following command in the <code>microservices</code> directory to generate a default <code>tye.yaml</code> file:</p>
<pre><code>tye init
</code></pre>
<p>The contents of the <code>tye.yaml</code> should look like this:</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-3.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-3.png" alt="Image tye yaml" width="1025" height="393" class="alignnone size-full wp-image-23737"></a></p>
<p>The top level scope (like the name node) is where global settings are applied.</p>
<p><code>tye.yaml</code> lists all of the application’s services under the services node. This is the place for per-service configuration.</p>
<p>To learn more about Tye’s yaml specifications and schema, you can check it out <a href="https://github.com/dotnet/tye/blob/master/docs/reference/schema.md">here</a> in Tye’s repository on Github.</p>
<blockquote>
<p><em>We provide a json-schema for <code>tye.yaml</code> and some editors support json-schema for completion and validation of yaml files. See <a href="https://github.com/dotnet/tye/blob/master/src/schema/README.md">json-schema</a> for instructions.</em></p>
</blockquote>
<h3>Adding external dependencies (Redis)</h3>
<p>Not only does Tye make it easy to run and deploy your applications to Kubernetes, it’s also fairly simple to add external dependencies to your applications as well. We will now add redis to the frontend and backend application to store data.</p>
<p>Tye can use Docker to run images that run as part of your application. Make sure that <a href="https://docs.docker.com/get-docker/">Docker</a> is installed on your machine.</p>
<p>1. Change the <code>WeatherForecastController.Get()</code> method in the <code>backend</code> project to cache the weather information in redis using an <code>IDistributedCache</code>.</p>
<p>2. Add the following <code>using</code>‘s to the top of the file:</p>
<pre><code>using Microsoft.Extensions.Caching.Distributed;
using System.Text.Json;
</code></pre>
<p>3. Update <code>Get()</code>:</p>
<pre><code>[HttpGet]
public async Task<string> Get([FromServices]IDistributedCache cache)
{ var weather = await cache.GetStringAsync("weather"); if (weather == null) { var rng = new Random(); var forecasts = Enumerable.Range(1, 5).Select(index => new WeatherForecast { Date = DateTime.Now.AddDays(index), TemperatureC = rng.Next(-20, 55), Summary = Summaries[rng.Next(Summaries.Length)] }) .ToArray(); weather = JsonSerializer.Serialize(forecasts); await cache.SetStringAsync("weather", weather, new DistributedCacheEntryOptions { AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(5) }); } return weather;
}
</code></pre>
<p>This will store the weather data in Redis with an expiration time of 5 seconds.</p>
<p>4. Add a package reference to <code>Microsoft.Extensions.Caching.StackExchangeRedis</code> in the backend project:</p>
<pre><code>cd backend/
dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis
cd ..
</code></pre>
<p>5. Modify <code>Startup.ConfigureServices</code> in the <code>backend</code> project to add the redis <code>IDistributedCache</code> implementation.</p>
<pre><code> public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddStackExchangeRedisCache(o => { o.Configuration = Configuration.GetConnectionString("redis"); }); }
</code></pre>
<p>The above configures redis to the configuration string for the <code>redis</code> service injected by the <code>tye</code> host.</p>
<p>6. Modify <code>tye.yaml</code> to include redis as a dependency.</p>
<pre><code>name: microservice
services:
- name: backend project: backend\backend.csproj
- name: frontend project: frontend\frontend.csproj
- name: redis image: redis bindings: - port: 6379 connectionString: "${host}:${port}"
- name: redis-cli image: redis args: "redis-cli -h redis MONITOR"
</code></pre>
<p>We’ve added 2 services to the <code>tye.yaml</code> file. The <code>redis</code> service itself and a <code>redis-cli</code> service that we will use to watch the data being sent to and retrieved from redis.</p>
<blockquote>
<p><em>The <code>"${host}:${port}"</code> format in the <code>connectionString</code> property will substitute the values of the host and port number to produce a connection string that can be used with StackExchange.Redis</em>.</p>
</blockquote>
<p>7. Run the <code>tye</code> command line in the solution root</p>
<blockquote>
<p><em>Make sure your command-line is in the <code>microservices/</code> directory. One of the previous steps had you change directories to edit a specific project</em>.</p>
</blockquote>
<pre><code>tye run
</code></pre>
<p>Navigate to <a href="http://localhost:8000">http://localhost:8000</a> to see the dashboard running. Now you will see both <code>redis</code> and the <code>redis-cli</code> running listed in the dashboard.</p>
<p>Navigate to the <code>frontend</code> application and verify that the data returned is the same after refreshing the page multiple times. New content will be loaded every 5 seconds, so if you wait that long and refresh again, you should see new data. You can also look at the <code>redis-cli</code> logs using the dashboard and see what data is being cached in redis.</p>
<blockquote>
<p><em>The <code>"${host}:${port}"</code> format in the <code>connectionString</code> property will substitute the values of the host and port number to produce a connection string that can be used with StackExchange.Redis</em>.</p>
</blockquote>
<h3>Deploying to Kubernetes</h3>
<p>Tye makes the process of deploying your application to Kubernetes very simple with minimal knowlege or configuration required.</p>
<blockquote>
<p><em>Tye will use your current credentials for pushing Docker images and accessing Kubernetes clusters. If you have configured kubectl with a context already, that’s what <a href="https://devblogs.microsoft.com/docs/reference/commandline/tye-deploy.md"><code>tye deploy</code></a> is going to use!</em></p>
</blockquote>
<p>Prior to deploying your application, make sure to have the following:</p>
<ol>
<li><a href="https://www.docker.com/products/docker-desktop">Docker</a> installed based off on your operating system</li>
<li>A container registry. Docker by default will create a container registry on <a href="https://hub.docker.com/">DockerHub</a>. You could also use <a href="https://azure.microsoft.com/en-us/services/container-registry/">Azure Container Registry</a> (ACR) or another container registry of your choice.</li>
<li>A Kubernetes Cluster. There are many different options here, including:
</li>
</ol>
<blockquote>
<p><em>If you choose a container registry provided by a cloud provider (other than Dockerhub), you will likely have to take some steps to configure your kubernetes cluster to allow access. Follow the instructions provided by your cloud provider.</em></p>
</blockquote>
<h3>Deploying Redis</h3>
<p><code>tye deploy</code> will not deploy the redis configuration, so you need to deploy it first by running:</p>
<pre><code>kubectl apply -f https://raw.githubusercontent.com/dotnet...redis.yaml
</code></pre>
<p>This will create a deployment and service for redis.</p>
<h3>Tye deploy</h3>
<p>You can deploy your application by running the follow command:</p>
<pre><code>tye deploy --interactive
</code></pre>
<blockquote>
<p><em>Enter the Container Registry (ex: <code>example.azurecr.io</code> for Azure or <code>example</code> for dockerhub):</em></p>
</blockquote>
<p>You will be prompted to enter your container registry. This is needed to tag images, and to push them to a location accessible by kubernetes.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-4.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-4.png" alt="Image tye deploy output" width="1761" height="111" class="alignnone size-full wp-image-23743"></a></p>
<p>If you are using dockerhub, the registry name will be your dockerhub username. If you are using a standalone container registry (for instance from your cloud provider), the registry name will look like a hostname, eg: <code>example.azurecr.io</code>.</p>
<p>You’ll also be prompted for the connection string for redis.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-5.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-5.png" alt="Image redis connection string" width="1214" height="95" class="alignnone size-full wp-image-23744"></a></p>
<p>Enter the following to use the instance that you just deployed:</p>
<pre><code>redis:6379
</code></pre>
<p><code>tye deploy</code> will create Kubernetes secret to store the connection string.</p>
<blockquote>
<p><em>–interactive is needed here to create the secret. This is a one-time configuration step. In a CI/CD scenario you would not want to have to specify connection strings over and over, deployment would rely on the existing configuration in the cluster.</em></p>
</blockquote>
<p>Tye uses Kubernetes secrets to store connection information about dependencies like redis that might live outside the cluster. Tye will automatically generate mappings between service names, binding names, and secret names.</p>
<p><code>tye deploy</code> does many different things to deploy an application to Kubernetes. It will:</p>
<ul>
<li>Create a docker image for each project in your application.</li>
<li>Push each docker image to your container registry.</li>
<li>Generate a Kubernetes <code>Deployment</code> and <code>Service</code> for each project.</li>
<li>Apply the generated <code>Deployment</code> and <code>Service</code> to your current Kubernetes context.</li>
</ul>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-6.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-6.png" alt="Image tye deploy building images" width="640" height="324" class="alignnone size-large wp-image-23745"></a></p>
<p>You should now see three pods running after deploying.</p>
<pre><code>kubectl get pods NAME READY STATUS RESTARTS AGE
backend-ccfcd756f-xk2q9 1/1 Running 0 85m
frontend-84bbdf4f7d-6r5zp 1/1 Running 0 85m
redis-5f554bd8bd-rv26p 1/1 Running 0 98m
</code></pre>
<p>You can visit the frontend application, you will need to port-forward to access the frontend from outside the cluster.</p>
<pre><code>kubectl port-forward svc/frontend 5000:80
</code></pre>
<p>Now navigate to http://localhost:5000 to view the frontend application working on Kubernetes.</p>
<p><a href="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-7.png"> <img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/05/introducing-project-tye-7.png" alt="Image kubernetes portforward" width="665" height="227" class="alignnone size-full wp-image-23746"></a></p>
<blockquote>
<p><em>Currently tye does not automatically enable TLS within the cluster, and so communication takes place over HTTP instead of HTTPS. This is typical way to deploy services in kubernetes – we may look to enable TLS as an option or by default in the future.</em></p>
</blockquote>
<h3>Adding a registry to tye.yaml</h3>
<p>If you want to use <code>tye deploy</code> as part of a CI/CD system, it’s expected that you’ll have a <code>tye.yaml</code> file initialized. You will then need to add a container registry to <code>tye.yaml</code>. Based on what container registry you configured, add the following line in the <code>tye.yaml</code> file:</p>
<pre><code>registry: <registry_name>
</code></pre>
<p>Now it’s possible to use <code>tye deploy</code> without <code>--interactive</code> since the registry is stored as part of configuration.</p>
<blockquote>
<p><em>This step may not make much sense if you’re using tye.yaml to store a personal Dockerhub username. A more typical use case would storing the name of a private registry for use in a CI/CD system</em>.</p>
</blockquote>
<p>For a conceptual overview of how Tye behaves when using <code>tye deploy</code> for deployment, check out this <a href="https://github.com/dotnet/tye/blob/master/docs/reference/deployment.md">document</a>.</p>
<h3>Undeploying your application</h3>
<p>After deploying and playing around with the application, you may want to remove all resources associated from the Kubernetes cluster. You can remove resources by running:</p>
<pre><code>tye undeploy
</code></pre>
<p>This will remove all deployed resources. If you’d like to see what resources would be deleted, you can run:</p>
<pre><code>tye undeploy --what-if
</code></pre>
<p>If you want to experiment more with using Tye, we have a variety of different sample applications and tutorials that you can walk through, check them out down below:</p>
<p>We have been diligently working on adding new capabilities and integrations to continuously improve Tye. Here are some integrations below that we have recently released. There is also information provided on how to get started for each of these:</p>
<ul>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/ingress.md">Ingress</a> – <em>to expose pods/services created to the public internet</em>.</li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/tutorials/hello-tye/02_add_redis.md">Redis</a> – <em>to store data, cache, or as a message broker</em>.</li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/dapr.md">Dapr</a> – <em>for integrating a Dapr application with Tye</em>.</li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/distributed_tracing.md">Zipkin</a> – <em>using Zipkin for distributed tracing</em>. </li>
<li><a href="https://github.com/dotnet/tye/blob/master/docs/recipes/logging.md">Elastic Stack</a> – <em>using Elastic Stack for logging</em>.</li>
</ul>
<p>While we are excited about the promise Tye holds, it’s an experimental project and not a committed product. During this experimental phase we expect to engage deeply with anyone trying out Tye to hear feedback and suggestions. The point of doing experiments in the open is to help us explore the space as much as we can and use what we learn to determine what we should be building and shipping in the future.</p>
<p>Project Tye is currently commited as an experiment until .NET 5 ships. At which point we will be evaluating what we have and all that we’ve learnt to decide what we should do in the future.</p>
<p>Our goal is to <a href="https://github.com/dotnet/tye/releases">ship every month</a>, and some new capabilities that we are looking into for Tye include:</p>
<ul>
<li>More deployment targets</li>
<li>Sidecar support</li>
<li>Connected development</li>
<li>Database migrations</li>
</ul>
<p>We are excited by the potential Tye has to make developing distributed applications easier and we need your feedback to make sure it reaches that potential. We’d really love for you to try it out and tell us what you think, there is a link to a survey on the Tye dashboard that you can fill out or you can create issues and talk to us on <a href="https://github.com/dotnet/tye">GitHub</a>. Either way we’d love to hear what you think.</p>
</div>
https://www.sickgaming.net/blog/2020/05/...oject-tye/