Questions tagged [web-services]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
58 views

Should I create one large initial event or break down in smaller events?

I'm experimenting with event sourcing for an application we haven't build yet. No, I won't implement this without any thought, I'm just experimenting. My domain model looks somewhat like this. The ...
-2
votes
0answers
22 views

Difference between Apache Axis C++ and Axis Java for a SOAP web service? [closed]

I am looking to deploy a SOAP web service, and am looking to use Apache Axis. After doing some research, I found that Axis can be used with both C++ or Java. If anyone could explain the differences ...
-2
votes
0answers
52 views

Rest API better alternative to polling for asynchronous long running task

I have created a flask restplus API that accepts xlsx file as input and returns an XML. This would be consumed internally by our different APIs The current flow: other API POST an xlsx file by ...
1
vote
1answer
36 views

JEE Gps Tracking System Design

I have created a real-time GPS tracking web-based system using Java Servlets as a backend solution whereas the front end is using javascript with ajax requests and WebSockets. (Both the front and ...
1
vote
2answers
123 views

how to build microservices that also have GUIs

In a microservices architecture where each component does one thing, how do you handle GUI logic? How do you avoid building a front end web application that has a lot of smarts built into it where it ...
-1
votes
3answers
146 views

How to calculate the costs for an on-prem API request in terms of money?

My manager asked me how much it costs (in money, currency, $) to make a REST API request from our client application to one of our services. We do not use cloud, we have on-prem servers. The payload ...
76
votes
17answers
13k views

Why should 'boneheaded' exceptions not be caught, especially in server code?

I am confused because in quite a few places I've already read that the so-called 'boneheaded' exceptions (ones that result from bugs in code) are not supposed to be caught. Instead, they must be ...
-2
votes
2answers
153 views

Options for managing a multi-purpose web service?

I have a web service that serves two purposes. On a weekly basis, it syncs records from the GIS DB to a workorder management system's database. On a continual basis, it serves up the records to a ...
3
votes
4answers
143 views

How to model correctly a non persistent action via REST API

Hi I have a Order this order needs to be sent to an order system. There are several oprations that can be performed. Create Modify Check-Modification (this happens on existing order) Simulate ...
1
vote
1answer
64 views

Alternative architecture for multi-instance, client-to-client message relay/broker

Research leads me to believe the most common architecture for a multi-instance (horizontally-scaling) message relay service (the typical example being an instant messenger/chat service) is to ...
0
votes
2answers
34 views

Normalising pagination regardless of the target source

I have a service that fetches data from a target source (not through an API but via scraping) which can change. I want to do pagination so that I return 35 items per page but the target source is 25 ...
0
votes
1answer
74 views

Should microservices manage their own media file logics?

I've heard that when you designing a microservice, the service should includes everything it needs to make them loose coupling instead of calling each other (services). Based on this idea, should ...
-1
votes
1answer
216 views

How do sites like LeetCode & HackerRank test your code for correctness?

Not sure if this question belongs here, but I've always wondered how exactly sites like Leetcode & HackerRank test your code. Say you code in Java for a question like, Find all the duplicates in ...
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
31 views

Order of deletion with web cache overflow

I'm creating an web app who uses a service worker to download its pages in the cache so I can use the web app offline. It is possible that the user doesn't connect to the internet for a while. I know ...
0
votes
0answers
43 views

Patterns for handling a Multi Responsibility Response string

We have an off shore group that is responsible for a SOAP service. The service has a method that returns a key as a string, when everything goes correctly. When it doesn't the key is an error string. ...
2
votes
0answers
44 views

Send push notifications from ActiveMQ

I am trying to figure out how to send push notifications back to the client in the following ActiveMQ scenario: I have a spring boot web application #1 deployed on tomcat on RHEL server. From the ...
0
votes
1answer
108 views

Heroku request timeout vs Nodejs architecture

At this link (https://blog.heroku.com/timeout-quickly#how-webservers-work), I read: All webservers will work in a similar way. Any new request will go to a queue, and the server will process ...
2
votes
0answers
70 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
2answers
210 views

Building a rest api layer on top of a soap webservice

We want to build a rest api layer on top of a soap webservice. Our current situation is that we have a coldfusion application that talks with the webservice, both running on different servers. The ...
1
vote
1answer
44 views

Whose part of the system should handle malformed messages? [closed]

Currently we have a POS (point of sale) application that should call a remote service to declare each new sale. Considering that the remote service could be not reachable we have also a local db at ...
0
votes
0answers
33 views

How to store message content in a webservice

I am building a service responsible for sending email/sms communications. The service receives a request that contains information necessary to build an email/sms template and the recipient ...
0
votes
2answers
228 views

Is using HTTPS for web service calls secure enough?

I'm developing software that calls a SOAP web service I've created. My questions are about security: Is it "enough" (about securing web service) to have my web site secured with HTTPS, and to call ...
20
votes
4answers
4k 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
137 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/[...
0
votes
0answers
56 views

Zipping and downloading multiple files

We're currently designing an web application that will basically expose "messages" to end users, each message consisting of a subject and body, but more important 1 to many files we call "attachments"....
3
votes
1answer
214 views

Does it make sense to authenticate a method that exposes non-sensitive data

We're developing an Angular application that consumes a web method exposing some information that is not sensitive, just bus seat promotions; the user enters where he wants to go and when and he will ...
3
votes
3answers
249 views

Dealing with data arriving at a different times

I have a load balanced service that needs two data inputs to correctly give a result. One of these inputs comes from a queue, the other comes from user input. Most of the time the data that comes ...
7
votes
4answers
807 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 ...
1
vote
1answer
95 views

How to balance code duplication with being able to prevent unnecessary service calls

Apologies in advance if this is considered opinion based, but I wasn't sure where to ask it and was interested in learning if there were any definitive best practices. Say an application calls a ...
0
votes
1answer
107 views

What is the optimal pattern to ensure a priority API gets cycles over its related (non-priority) API?

I have two synchronous web APIs that perform the same work but one needs to be prioritized over the other (the former is called from a client, whereas the latter is a caching optimization for before a ...
51
votes
9answers
11k views

Should you guard against unexpected values from external APIs?

Lets say you are coding a function that takes input from an external API MyAPI. That external API MyAPI has a contract that states it will return a string or a number. Is it recommended to guard ...
-2
votes
1answer
510 views

good practice: error message and error code

I'm currently testing a web service and I have noticed that there is only one error code ever return: 400. However, the error message return isn't always the same. Here are some examples of the ...
-3
votes
1answer
99 views

Need of advice on server code design [closed]

I want to build a web application in Java on Tomcat server (I am open to change the type of server if needed) The requirement for me is for the user to be able to login and download sensitive data (...
0
votes
1answer
127 views

How to protect while loosely coupling a db server that is shared by 2 different services

Background information I have a database that will be used by two different web applications. Solution A (user driven web application) resides on the public internet and will write / update / delete ...
1
vote
0answers
138 views

Separating WebRTC Signal Server and Media (SFU) server

I'm working on a WebRTC VOIP product. I am not using peer-to-peer connections, but instead having clients connect to a SFU which distributes audio to everyone involved in a call. From my ...
1
vote
1answer
108 views

Separation between regular web site requests and API requests

I have a doubt about the architecture of a web app when it comes down to differentiating between regular website requests and API requests. For the purpose of explaining, suppose I am the creator of ...
1
vote
0answers
109 views

Difference between API server and Gateway

I'm working on a VOIP startup currently and deciding which software stack will be best. I'm doing a lot of research of how other people do it, like Discord. It's really hard to make some of these ...
2
votes
1answer
101 views

Put functionality in same executable with command-line flag, or put it in a separate executable?

Background: I am working on a service where the domain logic exists as a library, and then the actual executable is built on a web framework as a wrapper around the domain logic library. There is no ...
-2
votes
1answer
98 views

Monitoring my REST API service

I have a REST API. I want to monitor it -- that it's always up. That's the canonical way to ping it? Especially when all of its calls require an API key. Should I create an empty open end point ...
10
votes
4answers
4k 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 ...
1
vote
1answer
69 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 ...
3
votes
0answers
298 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
74 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 ...
1
vote
1answer
162 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) ...
1
vote
0answers
59 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 ...
3
votes
0answers
362 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
138 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
142 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
161 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 ...