Questions tagged [routing]
The routing tag has no summary.
                53 questions
            
            
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                82
            
            views
        
        
            
            
        Should I instantiate controllers in route modules or use static methods?
                    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 ...
                
            
       
        
            
                2
            
            votes
        
        
            
                5
            
            answers
        
        
            
                3k
            
            views
        
        
            
            
        Pattern Matching on Request Body for Routing an HTTP Request
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                135
            
            views
        
        
            
        Would an edge-optimized API Gateway deployment or multiple deployments with latency routing be most performant?
                    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 ...
                
            
       
        
            
                6
            
            votes
        
        
            
                2
            
            answers
        
        
            
                783
            
            views
        
        
            
            
        Multi Tenancy Aware Gateway routing
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                131
            
            views
        
        
            
        Start small - but design in such way that sharding is possible - how?
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                743
            
            views
        
        
            
            
            
        Routing with micro services
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                4
            
            answers
        
        
            
                157
            
            views
        
        
            
            
        Is web application routing Enterprise or Application Business Rules from the viewpoint of Clean Architecture?
                    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:
...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                136
            
            views
        
        
            
        How to do loadbalancing for collaborative editing with multi-az and geoproximity based routing policy
                    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 ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                344
            
            views
        
        
            
        SPA browser-based routing: external routing table for both frontend (React) and backend (Go) use
                    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 ...
                
            
       
        
            
                3
            
            votes
        
        
            
                3
            
            answers
        
        
            
                2k
            
            views
        
        
            
            
        Rest application header based vs path based service routing
                    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 ...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                173
            
            views
        
        
            
            
        Which REST API url structure should I take?
                    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 ...
                
            
       
        
            
                -2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                706
            
            views
        
        
            
            
            
        MVC Routing (attribute routing) and project structure
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                108
            
            views
        
        
            
            
        How to implement adaptive routing?
                    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 ...
                
            
       
        
            
                8
            
            votes
        
        
            
                4
            
            answers
        
        
            
                2k
            
            views
        
        
            
            
            
        Advantages of HATEOAS based RESTful service
                    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 ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                149
            
            views
        
        
            
            
        mod_rewrite should I define a url prefix for assets?
                    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 ...
                
            
       
         
         
         
         
         
         
         
        