Skip to main content

Questions tagged [routing]

0 votes
2 answers
112 views

I’m building a modular REST API using Node.js + Express + TypeScript. My controllers are defined as classes. In my route files, I currently create a new controller instance, like this: import { Router ...
dok's user avatar
  • 313
2 votes
5 answers
3k views

In an HTTP application, I think about routing requests based not only on the path, but also based on the request body. For an example, think about the following two different body schemas for a PUT ...
Jonathan Herrera's user avatar
0 votes
1 answer
135 views

I'm deploying a serverless/lambda-based HTTP API via AWS API Gateway. My goal is to minimize latency in handling requests. I am considering two architectures, and I'm wondering which best meets this ...
Chad Johnson's user avatar
6 votes
2 answers
785 views

Hello Fellow Programmers, We are converting our monolithic application into microservice based. One challenge which we are facing is that one of our component is stateful. We cannot make this ...
Tuhin Dey's user avatar
0 votes
2 answers
131 views

Following question is more about best-practices than a real problem - nevertheless, I'd like to know how to do it in best way. Given a service, that can operate in multiple countries/geo-areas, one ...
Maciej Pszczolinski's user avatar
0 votes
2 answers
747 views

I’ve decided to create my project following a micro service architecture. I have a products service and a reviews service. The products service essentially stores all information regarding a product ...
KTOV's user avatar
  • 57
0 votes
4 answers
157 views

From the one side, customer can order "I need products list on /products and conversion statistics on /statistics/conversion". In this case, we need to obey in and write something like: ...
Takesi Tokugawa YD's user avatar
1 vote
0 answers
136 views

I am planning a project which has users collaboratively editing a document. To provide good latency to users, I am planning to deploy in multiple AWS regions with active-active mongodb replicas with ...
kapv89's user avatar
  • 649
1 vote
1 answer
347 views

I have a Single Page Application that uses React-Router and is served via Go backend. The pre-built static app is accessible at app.com which then uses app.com/api to load dynamic data. If a user goes ...
Coupcoup's user avatar
  • 220
3 votes
3 answers
2k views

i have a rest API that is a front end to a more complex SOAP based service. The soap based service uses extended(custom) WSA-addressing headers in order to perform its routing. The extension of the ...
Alexander Petrov's user avatar
1 vote
2 answers
174 views

I am wondering which API url scheme should I use. I am designing multi-site project so that the URL can looks like: [GET] /website/1 [GET] /website/1/category [GET] /website/1/product Which is life ...
Bartłomiej Sobieszek's user avatar
-2 votes
1 answer
707 views

how would i organize my project structure, areas or folders to support logical grouping structure within my project. www.mysite.com/org/{dynamic}/Importer/{controller}/{action} Currently i have two ...
Seabizkit's user avatar
  • 113
0 votes
1 answer
108 views

I need to send jobs to worker queues according to resource usage and other metrics like how many jobs have been processed and how successful they were. There is also the need to “weight” these ...
Hugo's user avatar
  • 11
8 votes
4 answers
2k views

There is a scenario, where we have two commercial applications that are so called REST based(java) but not HATEOAS compliant. Development activity is out-sourced to vendor Development phase of ...
mohet's user avatar
  • 89
2 votes
0 answers
149 views

I am working on a little framework where I have this directory tree: project/ |--- ... (directories unrelated to the question) |--- public/ | |--- index.php .htaccess The .htaccess sends every ...
AymDev's user avatar
  • 121

15 30 50 per page