Click here to Skip to main content
15,868,016 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: namespace error when using namespaces that don't match names ? Pin
Richard MacCutchan13-Mar-19 22:24
mveRichard MacCutchan13-Mar-19 22:24 
AnswerRe: namespace error when using namespaces that don't match names ? Pin
Eddy Vluggen14-Mar-19 2:20
professionalEddy Vluggen14-Mar-19 2:20 
SuggestionRe: namespace error when using namespaces that don't match names ? Pin
Richard Deeming14-Mar-19 8:44
mveRichard Deeming14-Mar-19 8:44 
GeneralRe: namespace error when using namespaces that don't match names ? Pin
Member 24584673-May-19 20:35
Member 24584673-May-19 20:35 
AnswerRe: namespace error when using namespaces that don't match names ? Pin
Member 245846717-Mar-19 23:04
Member 245846717-Mar-19 23:04 
QuestionCapture Search Engine Keyword Pin
Otekpo Emmanuel12-Mar-19 15:09
Otekpo Emmanuel12-Mar-19 15:09 
AnswerRe: Capture Search Engine Keyword Pin
F-ES Sitecore13-Mar-19 1:02
professionalF-ES Sitecore13-Mar-19 1:02 
QuestionCommunication between 2 MVC API's on the same server Pin
Fred28345-Mar-19 21:19
Fred28345-Mar-19 21:19 
Hello !

I have a question about what the best approach/design pattern could be to achieve communication between two or more MVC API's on the same machine.

Currently I have a single Web API delivering data to my web site. For reasons too long to explain here, we are refactoring the API to split it in multiple modules. One being the main API with the core information (think : Order database with detailed info), and the satellite API's having lists of orders, but without their details.

Of course, when a satellite API gets a request, it could just reply with the list of orders (which it knows of), but I want it to reply with the details of each orders ..

Important to mention is that all data is in memory, no database is behind the whole thing (otherwise it would be trivial).

Knowing that all API's would be on the same server, and that I obviously want to avoid ping-pong between the client site and the API's .. I would like to have my satellite API ask my main API about this information.

I have looked into WCF services, but I am not sure if that's the appropriate solution, and also about how to integrate it in my existing projects. I do already have the multiple API's running (not in prod) as normal ASP .Net MVC projects.

In an ideal world, I would simply "expose" a few methods from the main API, so that the other ones can call it. I've also looked at the other ways to do IPC, but I am unsure which would be best in my case.

Side questions about WCF Services:
- do they have to be a project of their own ? or could I say that a few methods in my API are the actual service ?
- What about the service reference that the client has to know of ? how do I specify where the service actually runs ? This is not necessarily known during dev, what if the server is hosted elsewhere ?
- Do I have to care about async calls here ?

Note: I'm obviously new to WCF, be kind Smile | :)

Thanks a lot

Fred
AnswerRe: Communication between 2 MVC API's on the same server Pin
Afzaal Ahmad Zeeshan6-Mar-19 1:34
professionalAfzaal Ahmad Zeeshan6-Mar-19 1:34 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 2:03
Fred28346-Mar-19 2:03 
AnswerRe: Communication between 2 MVC API's on the same server Pin
Nathan Minier6-Mar-19 1:59
professionalNathan Minier6-Mar-19 1:59 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 2:20
Fred28346-Mar-19 2:20 
QuestionOpenID, ADSF, custom LoginID Pin
Super Lloyd28-Feb-19 14:52
Super Lloyd28-Feb-19 14:52 
QuestionUsing SelectList for dropdown binding (ASP.NET Core) Pin
Member 1416479527-Feb-19 4:42
Member 1416479527-Feb-19 4:42 
AnswerRe: Using SelectList for dropdown binding (ASP.NET Core) Pin
Richard Deeming27-Feb-19 8:10
mveRichard Deeming27-Feb-19 8:10 
GeneralRe: Using SelectList for dropdown binding (ASP.NET Core) Pin
Member 1416479527-Feb-19 8:20
Member 1416479527-Feb-19 8:20 
QuestionCapture and report JavaScript errors Pin
dataminers25-Feb-19 21:46
dataminers25-Feb-19 21:46 
QuestionASP.Net Core separate API and UI projects Pin
Mycroft Holmes14-Feb-19 13:18
professionalMycroft Holmes14-Feb-19 13:18 
AnswerRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 2:33
Json Dev23-Feb-19 2:33 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Mycroft Holmes23-Feb-19 11:23
professionalMycroft Holmes23-Feb-19 11:23 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 11:55
Json Dev23-Feb-19 11:55 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Mycroft Holmes23-Feb-19 14:55
professionalMycroft Holmes23-Feb-19 14:55 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 16:49
Json Dev23-Feb-19 16:49 
QuestionC# CREATING SIMPLE ORACLE API Pin
sellol12-Feb-19 1:20
sellol12-Feb-19 1:20 
AnswerRe: C# CREATING SIMPLE ORACLE API Pin
Richard MacCutchan12-Feb-19 5:28
mveRichard MacCutchan12-Feb-19 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.