We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [web-development]

Web development is a broad term for the work involved in developing a web site for the World Wide Web or an intranet.

Filter by
Sorted by
Tagged with
-2
votes
0answers
22 views

Django - Heavy Database Usage

Let's say you are building a SAAS application system in which every user will use the database heavily, for example, a hospital management system. Should you have separate databases for each user? And ...
0
votes
1answer
74 views

Service layer returns DTO to controller but need it to return model for other services

Following this post https://stackoverflow.com/questions/21554977/should-services-always-return-dtos-or-can-they-also-return-domain-models and best practices in Software Arch suggestions by Martin ...
3
votes
3answers
202 views

Does each microservice need its own server running (Tomcat, docker container)

In development I have a Java backend API which I'm running with Tomcat. I'm wanting to wrap the backend in a docker container and deploy to an AWS EC2 instance, and be able to scale up/down. Does ...
-2
votes
0answers
17 views

Where to do the http request routing in a SSR application, client-side or NodeJS middle layer?

I am building a personal blog system, which support markdown writing. We want to reuse the markdown render component on both the client-side editor and the server side page rendering, so we involve a ...
1
vote
1answer
57 views

What's the prefer way to construct a personal blog render system, SSR or prerender or anything else?

I am building a personal blog system. The system is more like a platform, means that not only the admin, but all registered users can post their blogs. We've decided that using markdown as the blog's ...
-2
votes
0answers
63 views

What is a good way to structure a web site as part of a bigger site?

OK, I have a abstract question what ways you suggest to structure a subproject of a existing website. I first describe what I have and what I want to achieve: There is a homepage in a CMS (Joomla) ...
1
vote
1answer
50 views

Multitenancy - Tenant provider in microservices architecture

We are now in a process of migrating our server-per-client architecture to a multi-tenancy architecture. Everything is in place except for one design issue we are having. We are using a subdomain in ...
0
votes
4answers
278 views

Is creating ViewModels in Web API a bad practice?

So, somebody at work who is twice as experienced than I am, told us that we must not create ViewModel classes within Web API. (We are using Angular for UI) In his opinion ViewModel is ASP.NET MVC ...
2
votes
1answer
66 views

How to handle frequent update requests to an API which is connected to the database?

In a document editing web application such as Google Docs or Evernote, sync/save has to happen almost instantaneously to make sure data loss is minimal in case of a connection failure or a client ...
-1
votes
1answer
47 views

Is it okay to group multiple actions in a single http request

I have a view which displays a list of items related to one thing, it allows creation, removal of, and updates to these items. All changes only persists when the user hits save. Is it okay to group ...
0
votes
2answers
114 views

Improve website speed with better user session management

I have an ecommerce website wherein as soon as a new user comes on website then a new visitorId gets generated for that user in database and that visitorId cookie gets stored in his browser and in ...
1
vote
1answer
85 views

What is the best way to run multiple instances of a web app that requires state to be transferred between instances?

I'm working on a web app where users enter a "room." The state of these rooms is loaded in the server's memory at all times, and is synchronized with the clients via websockets. What's the best way to ...
2
votes
1answer
35 views

Best practice in synchronized form data validations (Web apps - Client-Server)

Here we go again with topic what was asked many times all over internet, but I not found any good enough answer: What are best practices in making client and server side validations synced? I was ...
0
votes
2answers
72 views

Turning complex XML (or content tree) into HTML - How to do it (in Java)?

I have a deep object content tree that I transform into a XML using JAXB and a small self written API on top. But now I want to create a static HTML site that has basically the same content (and ...
3
votes
2answers
165 views

Most efficient way to return results to a web page with a sorting algorithm

Recently, I've been building a search page where the user can input their search criteria and the server side will use a scoring and sorting algorithm to return the 'best' results first. The current ...
2
votes
1answer
95 views

Is this the right way to handle errors using the fetch api?

I am using the fetch api in my handleSubmit function in a React component to post data like this: handleSubmit(event) { event.preventDefault(); var error = false; var { username, password } = this....
1
vote
1answer
130 views

Should I keep my web app front end completely backend agnostic

I am very much an amateur developer. I have written a web app which uses parse-server as a backend. My question revolves around how agnostic the frontend should be to the backend (parse server)? For ...
0
votes
0answers
25 views

What layer/object should I add a Helper method to get all Product objects from?

I have a Helper class and a Service class currently and I read this other question about the difference between a service class and a helper class and got confused. A method to get all products in my ...
0
votes
2answers
246 views

Who or what exactly does the “Same Origin Policy” aim to protect

As I understand the "Same Origin Policy" is a browser security feature that aims to protect the user. It prevents scripts to load data from another webserver (typicall with ajax). So esentially there ...
0
votes
1answer
495 views

Jpa Repository save inside a for loop

I have this requirement: Csv Upload (using opencsv) Should display if the record is inserted (if it doesn't exist in the db) or updated (if it exists). Eg.: 5 records inserted 2 records updated. ...
0
votes
0answers
24 views

Ruby on Rails newbie question, regarding general design for models/controlers for feedback app/ my thinking

I am working on a little project which essentially allows me as the administrator to upload new products to the app (each product would be a video explaining product) which would have its own specific ...
2
votes
0answers
61 views

Connect a web-app to to the back-end message queue

We are currently looking into dividing our back-end in multiple services using a message queue (RabbitMQ). Having a message queue suddenly gives us the possibility to update the web-app freely, but do ...
2
votes
0answers
25 views

Use model instance to access model's manager 'objects'

In the Django documentation it's mentioned that Django managers are accessible only via model classes rather than model instances to enforce table and record level operations. What are table and ...
-1
votes
1answer
84 views

Is there a reason to have multiple projects for a single API? [closed]

I entered yesterday to my new job and while browsing their repositories, I noticed they have a project for every resource of a REST API. For example, if they need to add a REST resource called "people"...
0
votes
0answers
77 views

Business logic in a stateless backend when frontend already has all the data

I have a frontend application, that only knows about and communicates with a single backend service. This backend service serves only this frontend app and no-one else. Backend is completely stateless,...
3
votes
2answers
91 views

Why create CSS classes named to match one specific style? (non-semantic class names)

There are a number of CSS frameworks that have a one-to-one correspondence between many of the classes and a single style. For example, in basscss ".inline-block" is defined as "display: inline-block;...
-1
votes
1answer
33 views

Adding resources to subresource REST API

I'm trying to build an web API that closely represents a library of books. I currently have the following routes. GET /api/books GET /api/books/:bookID GET /api/libraries POST /api/libraries This ...
-3
votes
1answer
91 views

Taking over a project. Should I scrap and rebuild? [closed]

I'm taking over an Opencart solution for a client. This is for my capstone at College. I'm to create a simple CRM (Customer Relationship Management) software that will live as a single page ...
-2
votes
1answer
57 views

Preferred MIME type of S-expression in `HTTP_ACCEPT` header?

NancyFX has Content Negotiation feature that I can write additional serialization adapter for S-expression by implementing IResponseProcessor interface. And there is a problem... S-expression's MIME ...
0
votes
1answer
61 views

Potential Solutions to loading Javascript classes unknown at run time

I'm looking for some advice or potential options for loading javascript files in real time long after the DOM has fully loaded. Those javascript files need to be sent over a WebSocket connection, and ...
0
votes
1answer
57 views

Best practice for re-using single view file for multiple pages with slightly different content

If you have a view file which you want to re-use for different pages which have, for example, slightly different page headings, is there a 'best approach' of the three below? (Considering separation ...
0
votes
2answers
135 views

Building Client Specific Application on Top of Standard Application

I have a standard application and in this case, it is an Accounting ASP Net MVC application. Now, I have a new client that has their own specific requirements like other fields and some custom ...
0
votes
0answers
18 views

Route requests based on path url to the same server which uses web sockets when implementing a load balancer

I have an online whiteboard where users connect to the same room depending on the last part of the url where the room name is present. The urls are dynamic and is created per new room. Eg: https://......
2
votes
1answer
145 views

At what point is having a static class with utility methods better than having an injectable service?

I have a pretty general question about the design of Angular web applications. I'm a big fan of writing services. Sometimes I write services that have only utility methods that don't require state at ...
0
votes
2answers
87 views

User friendly webapp configuration

I'm planning to develop a web application that would run on-premise at the customer. I'm quite unsure about the whole process of setting up the site in a user-friendly way, but mostly disturbed by the ...
0
votes
0answers
10 views

When user re-navigates to another page current process is stopped. Nginx-Gunicorn-django

I am using Nginx with gunicorn to host my Django app. In development I used the inbuilt python server to host my django app.(manage.py runserver). One of my definition in views.py inputs multiple apks(...
4
votes
5answers
545 views

Why are there so many frameworks for web development? [closed]

I am currently a Junior back-end developer, I write Java and Scala and I love it. I really want to get into web development, but it seems like every time I look up some guide, it is really just a ...
0
votes
1answer
90 views

Place Logic In Client Side or Server Side

I'm building a small personal website. Basically, they are 20 short sound files. Clicking a button will play one of those files randomly. Once played, that file will no longer be played. So in total, ...
19
votes
4answers
3k views

Why not use SQL instead of GraphQL?

Recently I learned about GraphQL which claims to be superior to RESTful. However, I started wondering why don't we simply put SQL statements into an HTTP GET request. For example, in GraphQL I would ...
0
votes
2answers
135 views

How to describe an API-like request that is browser-to-browser?

I'm building a web application that has a feature which allows visitors to directly access resources using URL patterns, for example: www.site.com/client/[clientID]/orders www.site.com/client/[...
3
votes
2answers
76 views

Integration with multiple SSO's

Currently, we had a web app that integrated with SSO through Open-Id protocol Then we got another client that had it's own SSO and need us to integrate with their SSO through SAML protocol so their ...
1
vote
1answer
1k views

Download file stream as it's being generated

Scenario We are building a UI that allows users to query our data in bulk. The return format is CSV and there is a decent amount of processing that needs to happen, so this processing processing is ...
2
votes
2answers
113 views

Methods of automated frontend tests

I am working on a Rails + React application and investigating frontend testing. Unlike the backend tests this doesn't seem to be a straightforward process with one obvious path. There are a list of ...
1
vote
3answers
215 views

URL friendly id from DDD entity id

I am currently learning DDD and having a hard time wrapping my head about how to implements URL friendly ids for a web application. From my knowledge, in DDD it is common practice to use UUID as ...
1
vote
1answer
67 views

Recommended manner of installation for an open source web application and api?

I'm currently working on my own open source project. There are two parts to it at the moment, a .NET core web API and an Angular client side app. I would like to get your views on installation/setup ...
1
vote
1answer
77 views

Is the way I am doing client-side rendering bad practice? [closed]

I am working on my first web development project, SQLite4Web. Long story short: SQLite4Web is a web interface for SQLite database files. The user can access their database via /db/{dbToken}, where ...
0
votes
1answer
35 views

How can my distributed web service rate-limit calls to a downstream component?

Context: I own a service that's distributed across VMs, that themselves are distributed across multiple data centers. Scenario: I'm adding an API that calls a single downstream dependency. This ...
0
votes
0answers
51 views

How can I stop storing user data twice in two separate services

So I have two services that run, each with their own database. S1 stores user information and other primary data. Users also login and signup via S1 endpoints. S2 stores the same user information and ...
3
votes
1answer
138 views

Efficient and readable method for styling of javascript webcomponents

I have a web page that loads a very long list of custom web components, each with their own shadow DOM and a stylesheet shared by all instances. Originally, I included the stylesheet as css file ...
0
votes
3answers
190 views

If callback function, promises and async/await patterns all can be used to achieve asynchronous behaviour then why don't we stick to one?

As far as I have seen then async/await, callbacks and promises are and can only be used to achieve asynchronous programming. Correct? So my questions are: 1) Is it correct that the former three is ...