Building a server API with .NET [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know ASP.NET Web API is the big thing now, but isn't it mainly for client consumed services (browser apps, mobile apps etc.)? I need to develop a server side API that is called by other servers in my app to perform operations, not retrieve models of data, but RPC calls, for example, UpdateCache(), CalculateAtomicExplosion(), SendNotification(), FindTheRabbit(). I used to do these things with WCF, but I see it's slowly becomes replaced by Web API, but is Web API designed for that task? Will I be able to bind a remote service and call it with a proxy class like I used to with WCF / asmx? Communicate with CLR objects? etc..
What's the best practice on completing this task with current technologies?
Thanks!

Related

Create App with Ionic2-Angular2 front and ASP.NET core Back? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
how can I create app with Ionic2-Angular2 front-end and ASP.NET core Back-end? in same server. Also I what about multi-platform application.
Yes, you can. In ASP.NET you'll create a web API, that will be consumed from angular code. Here is how you create a web API: https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api
Angular, more precisely the JavaScript which will be generated, does not "know" what kind of back end is used. There just will be an URL and the method how to access it. Your communication will probably embrace HTTP GETs and POSTs.
As long as the resource is accessible with one of the methods,
it does not matter if it is
a static file (post would not make sense in this case)
a PHP script
or ASP.NET Backend
or something else.

c#: should we have two different endpoint for clients i.e. UI and Service or create common endpoint for all cleints? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
We have two layers from where all clients enter the application:
UI Layer: We have MVC, Webforms, JS code here.
We call C# MVC controller in this project from JS. We use this for MSite/Desk clients. This returns back HTML to the clients.
Service Layer: This is Web API project. Android, IOS clients call this to get back JSON.
Both have different URLs,
Its becoming tricky to have common validation for these two different entrypoints?
Should we make a common entrypoint i.e. UI calling service layer to get data? How can we do this? Or is there some other way to solve this?
You can use your WEB API endpont as common endpont. All your client application should call endpoint only.
Your MVC application should also call the same web api which mobile apps are calling

What is the effect of timer control on IIS when used in .net web service [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to know that What is the effect of timer control on IIS when used in .net web service. i.e. how much increase in the resource consumption of W3WP process.
You shouldn't use timers in a Web service. Since HTTP is stateless, you're serving resources and closing the whole connection with the client in a few milliseconds. That is, you don't want long processes since you want to prioritize more concurrent requests than long requests.
If you need to perform background processing, you should use a Windows service.
Take a look at Topshelf documentation to get started with Windows service development.

is there any solution for making 10000 concurrent web requests in C#? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to test my asp.net web api REST service that hosted in a HP-580dl and I want to measure the performance and response time when 10,000 simultaneous requests hit the service.
is there any way to do that in C# ?
Siege is a good tool for measuring load under concurrent requests: http://www.joedog.org/siege-home/
It's not written in C#, but there's no reason why it should be.
The Visual Studio load testing tools provide this functionality, and can control multiple agents in cases where you want a distributed profile and/or a greater concurrency level than a single client machine can support.
Create and run a load test

What are the best practices to connect Android application and .NET world using web services? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Let's assume I have some sort of user data, like list of user messages and some metadata (coordinates and etc.)
Right now I have to expose some API for Android clients to get/filter user data. So I am wondering what are the best practices to do that? Should I use WCF Data Services, REST WCF or Atom Feed WCF? or something else? What I need is to create really easy to use API (which is supported by some libraries) in terms of developing for Android clients and for other mobile platform in the future, like WP7.
Thanks
This can be done using KSoap2.
See this tutorial:
http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html
As Dyonisos said ksoap2, and in the server side ASP.NET web services, it should do the job. BTW there is a lot of examples on the Internet for using those two techs.
http://sarangasl.blogspot.com/2010/09/create-simple-web-service-in-visual.html
How to call a .NET web service from android?
http://bimbim.in/post/2010/10/08/Android-Calling-Web-Service-with-complex-types.aspx

Categories

Resources