Skip to main content

Questions tagged [routing]

Filter by
Sorted by
Tagged with
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
0 votes
0 answers
101 views

We have a Raspberry PI (with raspbian OS) that runs some application, this application uses a local configuration file that contains some data like username, password, server url etc. We will provide ...
Mykhailo Seniutovych's user avatar
2 votes
2 answers
768 views

I'm currently working with a window cleaning company that uses it's own set of heuristics for scheduling its small set of cleaners for jobs - basically a huge spreadsheet with dates and human assigned ...
Louis JA's user avatar
66 votes
10 answers
9k views

Compared to about 10 years ago I have noted a shift towards frameworks using the style of routing that decouples the URL path from the filesystem. This is typically accomplished with the help of a ...
Dennis's user avatar
  • 8,267
2 votes
1 answer
1k views

I am building a web application crawler that crawls for HTTP requests (GET, PUT, POST, ...). It is designed for one specific purpose; bug bounty hunting. It enables pentesters to insert exploit ...
Tijme's user avatar
  • 31
1 vote
1 answer
150 views

I'm currently developing an API (node/express js) for a blog website that uses a markdown parser (showdown) for rendering content and a html sanitizer (html-santize) for removing malicious html/js. ...
Alexander's user avatar
  • 111
1 vote
1 answer
2k views

This is a design question where I am trying to accommodate a business need. I have two entities - Item and Job. Original Situation Item represents a line item on a ledger, and Job is created only ...
Dennis's user avatar
  • 8,267
4 votes
1 answer
187 views

A bit of down time at work let my mind wonder a bit. I was designing a single location application on Digital Ocean (load balancer to app servers to DB with DNS). All fine. Then I thought what if the ...
nerdlyist's user avatar
  • 945
4 votes
4 answers
846 views

I am building a service that will push notifications to many other services. It has a couple of different notification types that each consumer may care about, but likely will not care about all of ...
Steve Ellis's user avatar
3 votes
1 answer
993 views

We have 25 instances of the same database facilitating different production plants in our organization. Basically, location X uses it's own copy of the database, location Y uses it's own copy, etc. ...
Carson's user avatar
  • 206
3 votes
1 answer
585 views

I am developing an iOS app and I am moving to a VIPER-like architecture. It looks like this: View--ViewModel--Router--ViewModel--View The difference from the VIPER is that I have have one global ...
charlag's user avatar
  • 131
0 votes
1 answer
3k views

In Angular 2 (currently 2.0.0-rc.6), routerLink is used as a directive to indicate a path we wish to follow in our routing, e.g. in response to clicking a link. However, in the documentation both of ...
Andrew Willems's user avatar
1 vote
1 answer
254 views

I'm confused about routing. In some systems I've seen only naming conventions. In other's I've seen configuration, and in some I've seen both options (like in ASP.NET MVC5). In the naming ...
johnny's user avatar
  • 3,679
2 votes
3 answers
14k views

Given a starting point A and an end point E, I need an algorithm to determine the minimum transit route in a city that passes through all points (A, B, C, D, E) and is the fastest possible. I know I ...
Vinicius's user avatar
  • 129
6 votes
2 answers
59k views

One scenario is when you're creating a search endpoint. In the example below, I want to search a database of companies and the queries can become complicated; enough where I want to have the ...
Cuthbert's user avatar
  • 201
4 votes
2 answers
4k views

I'm working with a Laravel app and am development a "referral" feature. A user clicks "refer friend" and a URL pops up that can be shared on Facebook etc, when another user clicks on the link they ...
dangelsaurus's user avatar
0 votes
1 answer
183 views

I'm learning Web Services Addressing and SOAP, but I can't get the importance of WS-Addressing in SOAP. This is quoted from Wikipedia "standardized way of including message routing data within SOAP ...
AhmedWas's user avatar
  • 147
4 votes
3 answers
3k views

For example, the video IDs that YouTube uses are not a simple number, but instead a case-sensitive, alphanumeric string (like dQw4w9WgXcQ). Why do some websites, such as YouTube and Dailymotion use an ...
Qqwy's user avatar
  • 4,947
4 votes
3 answers
703 views

Firstly, I hope I'm asking this in the right place. I work for a large online retailer in UK. We ship approaching 2000 orders each day and are growing very quickly. We currently use multiple delivery ...
Luke Cousins's user avatar
32 votes
5 answers
9k views

In the last three years that I have worked as developer, I have seen a lot of examples where people use a switch statement to set the path (both in back-end and front-end) for a URL. Below is an ...
gon250's user avatar
  • 476
1 vote
2 answers
1k views

What is the best way to tell if a user is already logged in when accessing the page? I have seen many people talk about a Recognition service that will validate a user trying to login, but what about ...
Katrina's user avatar
  • 211
0 votes
2 answers
232 views

Are there any best practices for URL routing in a master detail application? Let's say the master is a list of fruits. And the master can be filtered based on user security (not all users have ...
Dom M.'s user avatar
  • 111
3 votes
1 answer
4k views

My app uses Node.js and Express 4 and has the following code in the app.js file located in the root directory: var express = require('express'); var index = require('./routes/index'); var users = ...
Jackmc1047's user avatar
3 votes
1 answer
3k views

I implemented Dijkstra's path finding algorithm in JavaScript and a big part of it involves storing the distances to nodes and fetching the smallest. The distances change often and the smallest is ...
James Jackson's user avatar
3 votes
1 answer
259 views

I have been tinkering with the idea of creating a routing system as a learning experience and not for some production purpose. I have trying to decide what features are a must have and what features ...
AnotherGuy's user avatar
2 votes
0 answers
57 views

I was thinking of using Angular UI, and specifically its $StateProvider, which makes it easy to create nested views, in my next application. Until now, I have been using vanilla Angular's ngInclude ...
trysis's user avatar
  • 150
1 vote
1 answer
302 views

I've read a lot about RESTful, but I have always had a hard time figuring out how I'd use it with a very long query string. This is an in-house project, and it won't always have a simple /someAction ...
johnny's user avatar
  • 3,679
3 votes
3 answers
3k views

I am getting ready to set up a resource for some new api calls to my rails application. I am planning on calling the resource devices ie resources :devices This is going to represent android mobile ...
nPn's user avatar
  • 149
1 vote
1 answer
252 views

We are putting together an API to provide our vendors some simplistic direct access. I've built APIs before, and have always routed them as such: {controller}/{action}/{id} My boss, however doesn't ...
normanthesquid's user avatar
5 votes
1 answer
544 views

I'm developing a new application and I'm trying to come up with a convention for defining routes. Ideally, I would like it to be simple, flexible, and reversible. Here are some from popular frameworks:...
mpen's user avatar
  • 1,889
2 votes
1 answer
518 views

I have a SPA site that I'm working on, I have a requirement that you can have subroutes for a page view model. Im currently using this 'pattern' for the site MyApp.FooViewModel = MyApp.define({ ...
Anders's user avatar
  • 671
0 votes
1 answer
2k views

I was creating a new action for a WebApi controller and tried to create a url using the following: @Url.RouteUrl("DefaultApi", new { httproute = "", controller = "ClientApi"}) and noticed that the ...
SOfanatic's user avatar
  • 241
6 votes
5 answers
777 views

Everyone knows that the "current" way to do things is to have user-readable URLs. Like: http://example.com/blog/edit/1234 Rather than: http://example.com/blog.php?action=edit&id=1234 When ...
Earlz's user avatar
  • 23.1k
2 votes
2 answers
925 views

Why a single page application is a desktop client replacement why should I show certain url`s in the url bar of the browser. Why is mysite.com not enough. My question to you guys is now: What are ...
Pascal's user avatar
  • 267
4 votes
1 answer
253 views

My predicament: I designed an app, written in Python, to read my mail and check for messages that contain a certain digital signature. It opens these and looks for keywords. If the message contains ...
eatonphil's user avatar
  • 571
3 votes
1 answer
1k views

I'm considering implementing slugs in my blog. My blog uses MongoDB. One of the side-effects of using MongoDB is that it uses relatively long hex string IDs. Example before: http://lastyearswishes....
Earlz's user avatar
  • 23.1k