Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [web-services]

Web services are software systems designed to support interoperable machine-to-machine interaction over a network.

-2
votes
0answers
33 views

Backend, API, Frontend confusion

I have experienced hard times to decided which way to go. I try to illustrate with an example. I have a project. lets say todolist app. It will be web application, mobile applications and public API ...
6
votes
4answers
382 views

If a microservice architecture needs a separate database per microservice then it's too costly & unmanageable. Why do we even need it?

I read about microservices and it seems illogical to me to create a separate DB per service just to achieve isolation. I can achieve the same using only web services and a single database. Why do we ...
-3
votes
1answer
39 views

Is it possible to make a login feature in PHP on WordPress? [closed]

Background I am an intern a company working on their WordPress website. I have experience in C++/Java/Assembly, but I am new to the world of web development. I probably could use WordPress plugins ...
1
vote
1answer
32 views

Should I wrap my web service request data in an additional object?

I'm preparing some web services with Spring WS. Due to it being contract-first, I followed its guide and prepared an XSD. So far, my Web Service request XML looks like this (this is SoapUI rendered ...
2
votes
0answers
81 views

Ensuring reliable delivery of messages over websockets?

I am building a comet service which will push new data to the client on mobile devices. For this, I am using websockets to deliver messages to the client. The problem I am facing here is the ...
1
vote
1answer
38 views

Using a JWT for a web service after logging in (login twice?)

Good day everybody, My capstone project partners are stumped with a logic question that has to do with JWT, MVC & web services. We have already built a web app with a signup/signin feature using ...
0
votes
1answer
66 views

Which scenario is the best for service worker architecture?

We know about using service workers in modern web sites. Consider a scenario back-end as node.js and SQL Server. Data is loaded from central database to local customer web app (DB is about 700 MB) ...
0
votes
0answers
31 views

Java RPC - Notify client without client-side method call

The current project is a basic java web application written with the RPC pattern and java ObjectStream... Here a some base classes used by my basic framework: public abstract class AbstractServer ...
0
votes
0answers
37 views

Are REST Resources and GraphQL Object Types conceptually equal?

I'm in the process of outlining the intended business logic of a web service. At this point, I'm not too concerned with implementation details. On the contrary, I'm looking for ways to abstract them ...
1
vote
0answers
122 views

Design a Windows Service with self-hosted ASP.NET Core Web Services and UPD port listeners

I'm designing a software platform in automation that is responsible of many different tasks like: Core functions Driver interface for machines UDP listener for machine messages from PLC UDP listener ...
1
vote
2answers
90 views

Are two .net web applications necessary?

We have one single internal website. Underneath this website (in IIS) we have two web applications: 1-Main web application 2-Web services (created using the visual studio web api project template) ...
-1
votes
1answer
129 views

How can I prevent my API from being accessed by anything but my website?

I've got an API (Java + Play Framework). I've got a website (React) who has to communicate with the API. I don't want my API being called by anything but my website. How can I do?
1
vote
1answer
56 views

Should I do parallel processing in RPC web service?

Recently I was reviewing my team leader pull request in our Web API hosted by Kestrel. There was a place in our code which is sort of hot path and we are processing frequently over hundred of items ...
3
votes
1answer
114 views

REST API: How to PUT/POST different units of data

I have an API I have designed which can return data in 2 different units. To explain this I am tending to use the example of a measurement, in particular temperature. However my use case is slightly ...
1
vote
1answer
135 views

Is it usual to “re hydrate” DTOs into full objects with relationships when consuming web services?

We are designing a web API to transfer objects obtained from a database to a client application which is a front end GUI. The server side business logic will be implemented (for better or worse) in ...
0
votes
0answers
16 views

Best approach when moving applications from DB integration to Web service integration?

I need advice on how to, in an Agile way, move from integration via database to integration via Web-services. We have a bunch of applications that support core business and then some other who are ...
1
vote
1answer
55 views

Is there a place for connection string in SOA's desktop clients?

In the SOA architecture, with many services that implements data persistence as well as basic logic - is there even a place for connection strings in client Desktop applications? Or should everything ...
3
votes
2answers
62 views

Parameters to Service-level classes: Primitives or domain-specific types?

We have an existing web service which is currently modeled as a single project, where the web/service/manager/model classes have gotten a bit confused and intermingled. As a refactoring, we're pulling ...
0
votes
1answer
57 views

Design/Process in respect to mission-critical systems (Web Services)

Overview For company abc, teams are separated in terms of mission-critical applications and their extended applications. For example, customer xyz uses mission-critical data, but there are business ...
1
vote
2answers
155 views

How to correctly split a monolith and rely on the same domain

Context I'm developing a Spring Boot java application. Currently it is a monolith with the rest API and the front end (vaadin driven) in the same big project. Although this is very easy to develop ...
0
votes
1answer
508 views

Pattern for web service response caching, but only use the cache for when the data store goes down or request otherwise would fail

We have a REST web service written in C# in ASP.NET MVC/WebAPI. When the underlying data store fails, this can lead to our service being completely unavailable, instantly. There is currently no ...
0
votes
2answers
65 views

Where and how to store URLs in a web module?

Situation I am currently refactoring existing web code. The code currently revolves around a ServerConfiguration object. It looks something like this: string UrlBase = "https://myserver.com/api" ...
3
votes
1answer
54 views

Realtime Live Auto updates for web applications

It's about trying to understand the architecture behind how updates to web application is done. I've been working on a non-public website that has bunch of records displayed in a UI, now the ...
1
vote
2answers
579 views

Best Practices - Including endpoint URL calls in JavaScript vs backend calls

I am building a web application that will retrieve results from a remote server and use them to render some charts and maps. The remote server has already been implemented and contains a large amount ...
0
votes
1answer
69 views

Hosting what normally would be a windows service inside a web server

We have the requirement to implement some fire and forget long running tasks that fit perfectly into windows services (remote data acquisition and processing, etc) but the requirement is to deploy ...
2
votes
1answer
1k views

How to handle multiple calls to webservice?

I got a REST webservice and it has a simple method like; public void processItem(Item item); Problem is processItem method takes too long to complete nearly 1 minute) and there can be multiple calls ...
1
vote
1answer
288 views

understanding video streaming on a servlet or webserver

This question has been asked quite a few times on StackOverflow and I would like to get an understanding of the concepts and process rather than directly solve a problem. I found the following post ...
6
votes
2answers
287 views

How do you handle JWT expiration for long running calls?

Currently we are debating over securing our multiple micro-services. The major concern is that the JWT token provided to us will expire before the call is finished. (This is in the synchronous design) ...
0
votes
0answers
40 views

Architecture design from a java based friend finder and groups creation for an IM app

I am trying to design the architecture of the friends finding and group creation service(the group creation system to be precise) of an Instant Messaging app with Android as the client, Java as the ...
0
votes
0answers
52 views

Wrapping microservices HTML result in parent page

I have a set of microservices which provide HTML pages meant for user-interaction and are pretty much stand-alone applications. These need to be "wrapped" by a Java-powered parent website which ...
4
votes
2answers
97 views

Running expensive computation on single server

I'm building a website that lets a user pay for a service that automatically does some video encoding for them. Encoding takes several minutes. A naive solution would run each encoding job ...
0
votes
1answer
601 views

How Immadiately Blacklist and Block Access of Access Token using JWT?

I have read OAuth2 and its statelessness using JWT as token. Token expires based on expired time, then how do I control token like blacklist and block its access immediately without being stateful? ...
-1
votes
1answer
437 views

RMI/CORBA vs Web service

As mentioned in wiki, A service-oriented architecture (SOA) is a style of software design where services are provided to the other components by application components, through a communication ...
0
votes
2answers
224 views

Is inserting service logic in its own class considered bad?

For example, let's say I have this wonderful interface: public interface BestService { public String whoIsAGoodService(String serviceName); } Going down it's implementation, we can find the ...
-1
votes
3answers
446 views

For what kind of websites is it ok or even better to use SQLite? [closed]

I'm familiar with the process of setting up Postgresql. And I'm also thinking of using SQLite for some of my websites for I don't need that much functionality that Postgresql offers. And I also want ...
3
votes
1answer
139 views

How should I merge two separate web application built in two separate frameworks by different teams into one? [closed]

Guys, I am a non-technical founder with some understanding of how the web app works front end and backend, etc. I have a somewhat technical question to help me make a business decision. I hope you ...
53
votes
10answers
13k views

When would you use a long, string ID instead of a simple integer? [closed]

I'd like to use Youtube as an example: they use IDs in the form of PEckzwggd78. Why don't they use simple integers? Or imgur.com - they also use IDs such as 9b6tMZS for images and galleries. Not ...
1
vote
1answer
51 views

Area of Use for webservices?

I'm used to program Desktop applications and old School (without web Services) web pages. Now after reading up on web Services and also wcf I'm unsure about the area of usage for web Services. The ...
1
vote
1answer
86 views

Transaction with web services

I am wondering how transactions with web services are achieved. Let's take an online store for example that needs to deal with 3 services: Inventory management SaaS Delivery management Saas Payment ...
1
vote
1answer
346 views

Design the interface of a microservice to cater multiple service requests

I have been working on a project with multiple microservices whose communication happens through API calls. Lets say microservice A calls a service provided by microservice B. According to the current ...
0
votes
1answer
73 views

Designing a shared-role web apps

I have several Django services which all have their own login portal, and colleagues have a user/pass for each portal (if we've given them permission). We'd like to unite all of these portals and ...
-1
votes
1answer
67 views

Creating an app with a secured performing service the Microsoft way

This week I want to start a greater app project that is expected to handle much data. The app will provide an interactive forum, a media library that allows streaming and a task module with push ...
4
votes
2answers
76 views

Writing requirement for Response Time from Hosted Server

We are contracting with a group to create some cloud services for us, and would like to write a requirement for them stating that a particular API call will provide results within X seconds. They are ...
0
votes
1answer
36 views

SOA with dynamic forms

When building a Service Oriented Architecture (because the services will be used by automated systems or other consumers), how can I go about creating a simple, dynamic form-based web frontend for ...
4
votes
1answer
48 views

Should error/ack message be constructed in the client or in server?

Should messages that will be shown to the client be resolved in the client-side or in the server-side? Any design (dis)advantages that you can think of between the two approaches? If the system ...
3
votes
1answer
516 views

Is WSDL still used? [closed]

As today most of the development is towards the lightweight service and RESTful architecture, is WSDL still needed to describe these services? In today's world -- where cloud computing, mobile ...
2
votes
0answers
119 views

Self hosting map vector tiles for web application

I'm building a web application, which involves (currently) a REST backend and a frontend SPA. The backend is hosting massive geo-enabled data, and the frontend is displaying it on a mapbox map. I'm ...
1
vote
1answer
139 views

Check if a controller is doing too many things

There is REST endpoint in my application which handles POST request and then makes a HTTP post to another external application and when the resource is creating in the external resource then I create ...
3
votes
3answers
2k views

Integration Testing: Testing Service to Service

I'm looking for some advice on testing strategies for service to service communication. I have one service (service A) that makes a call to another service (B) - which is a rest API. Both services ...
1
vote
1answer
556 views

Is it better to have separate projects for Frontend and backend?

I am running an ecommerce website built in Java using Spring and Hibernate. If I have to briefly describe current architecture then it is like this: I am having two projects by name - store front and ...