Blazor , ASP.NET Core Hosted vs Server Side in ASP.NET Core












5















I am trying my hands on blazor.Net which is an experimental framework.



I already developed a small project in this Framework and its awesome.



But after recent Update in Blazor Language Service on 14 November I Am Seeing Two Option in Template Selection



enter image description here



First is Blazor (ASP.NET Core Hosted)



Second is Blazor (Server Side in ASP.NET Core)



There is no information about difference between them ,



Can anybody tell me what is difference between these two templates and when should choose which one ?










share|improve this question




















  • 3





    blazor.net/docs/host-and-deploy/hosting-models.html

    – JohnB
    Nov 16 '18 at 5:49











  • So ASP.NET Core Hosted Blazer App is somehow similar with Angular App , less Bandwidth Use, Offline Support , No Server Side Code Dependency , and use of web assembly instead of JavaScript

    – Tanwer
    Nov 16 '18 at 5:56











  • Blazor is new tech that does away with 99% of the JS you need to touch. You need to read more yourself to get the answers first hand. happy to give you more links if required

    – JohnB
    Nov 16 '18 at 5:59
















5















I am trying my hands on blazor.Net which is an experimental framework.



I already developed a small project in this Framework and its awesome.



But after recent Update in Blazor Language Service on 14 November I Am Seeing Two Option in Template Selection



enter image description here



First is Blazor (ASP.NET Core Hosted)



Second is Blazor (Server Side in ASP.NET Core)



There is no information about difference between them ,



Can anybody tell me what is difference between these two templates and when should choose which one ?










share|improve this question




















  • 3





    blazor.net/docs/host-and-deploy/hosting-models.html

    – JohnB
    Nov 16 '18 at 5:49











  • So ASP.NET Core Hosted Blazer App is somehow similar with Angular App , less Bandwidth Use, Offline Support , No Server Side Code Dependency , and use of web assembly instead of JavaScript

    – Tanwer
    Nov 16 '18 at 5:56











  • Blazor is new tech that does away with 99% of the JS you need to touch. You need to read more yourself to get the answers first hand. happy to give you more links if required

    – JohnB
    Nov 16 '18 at 5:59














5












5








5








I am trying my hands on blazor.Net which is an experimental framework.



I already developed a small project in this Framework and its awesome.



But after recent Update in Blazor Language Service on 14 November I Am Seeing Two Option in Template Selection



enter image description here



First is Blazor (ASP.NET Core Hosted)



Second is Blazor (Server Side in ASP.NET Core)



There is no information about difference between them ,



Can anybody tell me what is difference between these two templates and when should choose which one ?










share|improve this question
















I am trying my hands on blazor.Net which is an experimental framework.



I already developed a small project in this Framework and its awesome.



But after recent Update in Blazor Language Service on 14 November I Am Seeing Two Option in Template Selection



enter image description here



First is Blazor (ASP.NET Core Hosted)



Second is Blazor (Server Side in ASP.NET Core)



There is no information about difference between them ,



Can anybody tell me what is difference between these two templates and when should choose which one ?







c# .net-core-2.1 blazor






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 18 at 23:01









brakeroo

679617




679617










asked Nov 16 '18 at 5:44









TanwerTanwer

313419




313419








  • 3





    blazor.net/docs/host-and-deploy/hosting-models.html

    – JohnB
    Nov 16 '18 at 5:49











  • So ASP.NET Core Hosted Blazer App is somehow similar with Angular App , less Bandwidth Use, Offline Support , No Server Side Code Dependency , and use of web assembly instead of JavaScript

    – Tanwer
    Nov 16 '18 at 5:56











  • Blazor is new tech that does away with 99% of the JS you need to touch. You need to read more yourself to get the answers first hand. happy to give you more links if required

    – JohnB
    Nov 16 '18 at 5:59














  • 3





    blazor.net/docs/host-and-deploy/hosting-models.html

    – JohnB
    Nov 16 '18 at 5:49











  • So ASP.NET Core Hosted Blazer App is somehow similar with Angular App , less Bandwidth Use, Offline Support , No Server Side Code Dependency , and use of web assembly instead of JavaScript

    – Tanwer
    Nov 16 '18 at 5:56











  • Blazor is new tech that does away with 99% of the JS you need to touch. You need to read more yourself to get the answers first hand. happy to give you more links if required

    – JohnB
    Nov 16 '18 at 5:59








3




3





blazor.net/docs/host-and-deploy/hosting-models.html

– JohnB
Nov 16 '18 at 5:49





blazor.net/docs/host-and-deploy/hosting-models.html

– JohnB
Nov 16 '18 at 5:49













So ASP.NET Core Hosted Blazer App is somehow similar with Angular App , less Bandwidth Use, Offline Support , No Server Side Code Dependency , and use of web assembly instead of JavaScript

– Tanwer
Nov 16 '18 at 5:56





So ASP.NET Core Hosted Blazer App is somehow similar with Angular App , less Bandwidth Use, Offline Support , No Server Side Code Dependency , and use of web assembly instead of JavaScript

– Tanwer
Nov 16 '18 at 5:56













Blazor is new tech that does away with 99% of the JS you need to touch. You need to read more yourself to get the answers first hand. happy to give you more links if required

– JohnB
Nov 16 '18 at 5:59





Blazor is new tech that does away with 99% of the JS you need to touch. You need to read more yourself to get the answers first hand. happy to give you more links if required

– JohnB
Nov 16 '18 at 5:59












1 Answer
1






active

oldest

votes


















4














In the server-side hosting model, Blazor is executed on the server from within an ASP.NET Core app. UI updates, event handling, and JavaScript calls are handled over a SignalR connection.



In the client-side model, the Blazor app, its dependencies, and the .NET runtime are downloaded to the browser, and the app is executed directly on the browser UI thread. All UI updates and event handling happens within the same process.



Pros & Cons - read more here: https://docs.microsoft.com/en-us/aspnet/core/razor-components/hosting-models?view=aspnetcore-3.0



The server side model was seen a less riskier to release first so we will see first it with asp.net 3.0. client side will come later.



Warning: Do not use in Production code until we get a supported release.






share|improve this answer


























  • Thnaks , I am not using it for Production Version . Just Doing Some Benchmark in comparison to Angular

    – Tanwer
    Nov 16 '18 at 5:59








  • 2





    personally i think you're making a good investment of your time. these JS frameworks have a massive learning curve and keep changing while Blazor aims to solve a lot of this while all the time simply knowing C#. As for Benchmarking - I would hold off until they do a release. The client hosted model might be a more fair apples-to-apples comparison though (even more distant release date)

    – JohnB
    Nov 16 '18 at 6:03













  • Agree With You , google end support of every angular version after 12 month (from their official documentation)

    – Tanwer
    Nov 16 '18 at 6:13











  • I would love to see a benchmark performance test between the asp.net core hosted vs server-side scenarios. It sounds like the server-side model will be rolled out first via .NET Core 3.0 but what version of Blazor will that be and will it still be considered "alpha" ?

    – bitshift
    Dec 7 '18 at 19:17






  • 2





    Link is dead, here is the replacement: docs.microsoft.com/en-us/aspnet/core/razor-components/…

    – Gerald Versluis
    Feb 14 at 10:14












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53332097%2fblazor-asp-net-core-hosted-vs-server-side-in-asp-net-core%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














In the server-side hosting model, Blazor is executed on the server from within an ASP.NET Core app. UI updates, event handling, and JavaScript calls are handled over a SignalR connection.



In the client-side model, the Blazor app, its dependencies, and the .NET runtime are downloaded to the browser, and the app is executed directly on the browser UI thread. All UI updates and event handling happens within the same process.



Pros & Cons - read more here: https://docs.microsoft.com/en-us/aspnet/core/razor-components/hosting-models?view=aspnetcore-3.0



The server side model was seen a less riskier to release first so we will see first it with asp.net 3.0. client side will come later.



Warning: Do not use in Production code until we get a supported release.






share|improve this answer


























  • Thnaks , I am not using it for Production Version . Just Doing Some Benchmark in comparison to Angular

    – Tanwer
    Nov 16 '18 at 5:59








  • 2





    personally i think you're making a good investment of your time. these JS frameworks have a massive learning curve and keep changing while Blazor aims to solve a lot of this while all the time simply knowing C#. As for Benchmarking - I would hold off until they do a release. The client hosted model might be a more fair apples-to-apples comparison though (even more distant release date)

    – JohnB
    Nov 16 '18 at 6:03













  • Agree With You , google end support of every angular version after 12 month (from their official documentation)

    – Tanwer
    Nov 16 '18 at 6:13











  • I would love to see a benchmark performance test between the asp.net core hosted vs server-side scenarios. It sounds like the server-side model will be rolled out first via .NET Core 3.0 but what version of Blazor will that be and will it still be considered "alpha" ?

    – bitshift
    Dec 7 '18 at 19:17






  • 2





    Link is dead, here is the replacement: docs.microsoft.com/en-us/aspnet/core/razor-components/…

    – Gerald Versluis
    Feb 14 at 10:14
















4














In the server-side hosting model, Blazor is executed on the server from within an ASP.NET Core app. UI updates, event handling, and JavaScript calls are handled over a SignalR connection.



In the client-side model, the Blazor app, its dependencies, and the .NET runtime are downloaded to the browser, and the app is executed directly on the browser UI thread. All UI updates and event handling happens within the same process.



Pros & Cons - read more here: https://docs.microsoft.com/en-us/aspnet/core/razor-components/hosting-models?view=aspnetcore-3.0



The server side model was seen a less riskier to release first so we will see first it with asp.net 3.0. client side will come later.



Warning: Do not use in Production code until we get a supported release.






share|improve this answer


























  • Thnaks , I am not using it for Production Version . Just Doing Some Benchmark in comparison to Angular

    – Tanwer
    Nov 16 '18 at 5:59








  • 2





    personally i think you're making a good investment of your time. these JS frameworks have a massive learning curve and keep changing while Blazor aims to solve a lot of this while all the time simply knowing C#. As for Benchmarking - I would hold off until they do a release. The client hosted model might be a more fair apples-to-apples comparison though (even more distant release date)

    – JohnB
    Nov 16 '18 at 6:03













  • Agree With You , google end support of every angular version after 12 month (from their official documentation)

    – Tanwer
    Nov 16 '18 at 6:13











  • I would love to see a benchmark performance test between the asp.net core hosted vs server-side scenarios. It sounds like the server-side model will be rolled out first via .NET Core 3.0 but what version of Blazor will that be and will it still be considered "alpha" ?

    – bitshift
    Dec 7 '18 at 19:17






  • 2





    Link is dead, here is the replacement: docs.microsoft.com/en-us/aspnet/core/razor-components/…

    – Gerald Versluis
    Feb 14 at 10:14














4












4








4







In the server-side hosting model, Blazor is executed on the server from within an ASP.NET Core app. UI updates, event handling, and JavaScript calls are handled over a SignalR connection.



In the client-side model, the Blazor app, its dependencies, and the .NET runtime are downloaded to the browser, and the app is executed directly on the browser UI thread. All UI updates and event handling happens within the same process.



Pros & Cons - read more here: https://docs.microsoft.com/en-us/aspnet/core/razor-components/hosting-models?view=aspnetcore-3.0



The server side model was seen a less riskier to release first so we will see first it with asp.net 3.0. client side will come later.



Warning: Do not use in Production code until we get a supported release.






share|improve this answer















In the server-side hosting model, Blazor is executed on the server from within an ASP.NET Core app. UI updates, event handling, and JavaScript calls are handled over a SignalR connection.



In the client-side model, the Blazor app, its dependencies, and the .NET runtime are downloaded to the browser, and the app is executed directly on the browser UI thread. All UI updates and event handling happens within the same process.



Pros & Cons - read more here: https://docs.microsoft.com/en-us/aspnet/core/razor-components/hosting-models?view=aspnetcore-3.0



The server side model was seen a less riskier to release first so we will see first it with asp.net 3.0. client side will come later.



Warning: Do not use in Production code until we get a supported release.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 15 at 1:44

























answered Nov 16 '18 at 5:50









JohnBJohnB

1,94511320




1,94511320













  • Thnaks , I am not using it for Production Version . Just Doing Some Benchmark in comparison to Angular

    – Tanwer
    Nov 16 '18 at 5:59








  • 2





    personally i think you're making a good investment of your time. these JS frameworks have a massive learning curve and keep changing while Blazor aims to solve a lot of this while all the time simply knowing C#. As for Benchmarking - I would hold off until they do a release. The client hosted model might be a more fair apples-to-apples comparison though (even more distant release date)

    – JohnB
    Nov 16 '18 at 6:03













  • Agree With You , google end support of every angular version after 12 month (from their official documentation)

    – Tanwer
    Nov 16 '18 at 6:13











  • I would love to see a benchmark performance test between the asp.net core hosted vs server-side scenarios. It sounds like the server-side model will be rolled out first via .NET Core 3.0 but what version of Blazor will that be and will it still be considered "alpha" ?

    – bitshift
    Dec 7 '18 at 19:17






  • 2





    Link is dead, here is the replacement: docs.microsoft.com/en-us/aspnet/core/razor-components/…

    – Gerald Versluis
    Feb 14 at 10:14



















  • Thnaks , I am not using it for Production Version . Just Doing Some Benchmark in comparison to Angular

    – Tanwer
    Nov 16 '18 at 5:59








  • 2





    personally i think you're making a good investment of your time. these JS frameworks have a massive learning curve and keep changing while Blazor aims to solve a lot of this while all the time simply knowing C#. As for Benchmarking - I would hold off until they do a release. The client hosted model might be a more fair apples-to-apples comparison though (even more distant release date)

    – JohnB
    Nov 16 '18 at 6:03













  • Agree With You , google end support of every angular version after 12 month (from their official documentation)

    – Tanwer
    Nov 16 '18 at 6:13











  • I would love to see a benchmark performance test between the asp.net core hosted vs server-side scenarios. It sounds like the server-side model will be rolled out first via .NET Core 3.0 but what version of Blazor will that be and will it still be considered "alpha" ?

    – bitshift
    Dec 7 '18 at 19:17






  • 2





    Link is dead, here is the replacement: docs.microsoft.com/en-us/aspnet/core/razor-components/…

    – Gerald Versluis
    Feb 14 at 10:14

















Thnaks , I am not using it for Production Version . Just Doing Some Benchmark in comparison to Angular

– Tanwer
Nov 16 '18 at 5:59







Thnaks , I am not using it for Production Version . Just Doing Some Benchmark in comparison to Angular

– Tanwer
Nov 16 '18 at 5:59






2




2





personally i think you're making a good investment of your time. these JS frameworks have a massive learning curve and keep changing while Blazor aims to solve a lot of this while all the time simply knowing C#. As for Benchmarking - I would hold off until they do a release. The client hosted model might be a more fair apples-to-apples comparison though (even more distant release date)

– JohnB
Nov 16 '18 at 6:03







personally i think you're making a good investment of your time. these JS frameworks have a massive learning curve and keep changing while Blazor aims to solve a lot of this while all the time simply knowing C#. As for Benchmarking - I would hold off until they do a release. The client hosted model might be a more fair apples-to-apples comparison though (even more distant release date)

– JohnB
Nov 16 '18 at 6:03















Agree With You , google end support of every angular version after 12 month (from their official documentation)

– Tanwer
Nov 16 '18 at 6:13





Agree With You , google end support of every angular version after 12 month (from their official documentation)

– Tanwer
Nov 16 '18 at 6:13













I would love to see a benchmark performance test between the asp.net core hosted vs server-side scenarios. It sounds like the server-side model will be rolled out first via .NET Core 3.0 but what version of Blazor will that be and will it still be considered "alpha" ?

– bitshift
Dec 7 '18 at 19:17





I would love to see a benchmark performance test between the asp.net core hosted vs server-side scenarios. It sounds like the server-side model will be rolled out first via .NET Core 3.0 but what version of Blazor will that be and will it still be considered "alpha" ?

– bitshift
Dec 7 '18 at 19:17




2




2





Link is dead, here is the replacement: docs.microsoft.com/en-us/aspnet/core/razor-components/…

– Gerald Versluis
Feb 14 at 10:14





Link is dead, here is the replacement: docs.microsoft.com/en-us/aspnet/core/razor-components/…

– Gerald Versluis
Feb 14 at 10:14




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53332097%2fblazor-asp-net-core-hosted-vs-server-side-in-asp-net-core%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown