Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [client]

It refers to client-server model where service requester is called client.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
112 views

Are there some best practices how to build a client library for an API?

I was tasked to create an API client library for our already existing API. I tried to research some ways how to approach this but couldn't find anything. Are there some best practices how to build ...
user3630290's user avatar
1 vote
2 answers
1k views

How to represent the absent of a field value in json response?

I am a react developer and writing the client on pure JS. I have sometimes missions to received data from server and send data to server. Now between the client team and backend rough discussion ...
Brk's user avatar
  • 31
0 votes
1 answer
128 views

Microservice & Clients interaction : Best way to persist previous API state information in successive API calls

Problem We have multiple microservices, like Home, Menu & Cart, exposed via Gateway. Each one has API exposed to the app. Now, each API has certain information that is needed by the successive API....
addy's user avatar
  • 1
-1 votes
1 answer
101 views

Auth flow between two services

We have two applications, each of them separated with its own backend and frontend. The first application is the user-facing one. They register on the site and as soon as they want to execute a ...
Matias's user avatar
  • 31
0 votes
1 answer
124 views

Decoupling data validation from data processing

I'm trying to implement a web service API client using the guidlines i've found in this article: https://www.oreilly.com/library/view/designing-evolvable-web/9781449337919/ch09.html As it comes to my ...
hardhypochondria's user avatar
0 votes
3 answers
151 views

Communicating error conditions in client API for remote RESTful server, what's the best way?

I'm writing an application based on a RESTful API located in a server (written in Python). An Android app will access the API endpoints to get, post, put or delete data. The usual. The server has a ...
ismarlowe's user avatar
0 votes
4 answers
160 views

Should I Decompose Client Classes?

I'm writing an SDK for the European Space Agency's DISCOs API. This has around 10 endpoints with different sets of query parameters, each of which returns a different payload type with different link ...
ScottishTapWater's user avatar
2 votes
2 answers
174 views

API design: how to minimize client support?

I am tasked with designing an API for a car registration service. I don't have all the details yet, but we will receive requests from car dealers via API that my client will then process and forward ...
Hans's user avatar
  • 416
-3 votes
1 answer
184 views

How do client-side libraries prevent spoofing? [closed]

I'm looking at Segment's documentation right now and they have something called a "write key" that you include in your client-side JavaScript in order to send analytics data to the backend. ...
Gopal Vashishtha's user avatar
0 votes
3 answers
178 views

Should the client silently fix a possible error or should it let the user of the client know about the error?

I'm building a client for an API. The API takes a query param that looks something like this 2-10, that's a range and notice that it uses a hyphen (-). Usually, data comes from another place using en ...
MauricioRobayo's user avatar
0 votes
2 answers
1k views

What is the standard method for updating client views of data?

I'm working with a client who currently uses a database system that they've outgrown, so we're re-building it using a different platform that can handle their growth. One feature of their current ...
Chuck's user avatar
  • 115
0 votes
1 answer
309 views

Should an http API client hide the http response object?

I'm using a client library for an HTTP API. The client exposes objects and methods matching the domain, e.g. Api::Document.download, but the return value is just the http response from the API. As the ...
iftheshoefritz's user avatar
9 votes
7 answers
631 views

Teams do relative estimations, business wants absolute estimations. How to make everyone satisfied?

This is the case: Clients want to know how much time will be needed to finish a particular task (not the group of tasks). They are asking for man/days absolute estimation and only when they get it, ...
DarkKnightSM's user avatar
0 votes
2 answers
497 views

Can a C# AnonymousPipeServerStream create a non .NET client?

For example, if I want to write a daemon program in C# that uses anonymous pipes to communicate with programs written in another language, is this both possible and feasible? I ask because I intend ...
gabriel.hayes's user avatar
5 votes
1 answer
1k views

Implementing both Sync and Async clients with DRY

I'm developing a client library. I'd like to provide both Sync and Async interfaces to endpoints on a server. They would be rather easy to implement as completely separate entities, but I would like ...
Felix's user avatar
  • 377
0 votes
1 answer
1k views

What is an application client?

Database System Concepts says Database applications are usually partitioned into two or three parts, as in Figure 1.6. In a two-tier architecture, the application resides at the client machine, ...
Tim's user avatar
  • 5,465
7 votes
4 answers
6k views

Alternatives to polling an API

Assume we have a desktop application (probably WinForms) that acts as a client to some API for an app with a messaging function. This API has endpoints that return a JSON of messages, and who sent ...
Al2110's user avatar
  • 265
1 vote
1 answer
56 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 ...
Dypso's user avatar
  • 231
1 vote
0 answers
62 views

How do I choose the right Websocket API

I'm doing a project where I have to control a live DALI controller and I'm sending data from the website to the controller with Websocket. How do I know what Websocket to use? At the moment I'm ...
Mads Bødker Christensen's user avatar
2 votes
6 answers
2k views

Wait for file(s) in a remote directory to be created, then transfer the file(s) immediately to local computer

I'm wondering what the best practice would be for the following task: I start a program on a remote node, which will generate subsequently new files in a publicly accessable folder. Whenever a new ...
stephanmg's user avatar
  • 129
0 votes
2 answers
952 views

Open source desktop application and security

I'm currently working on a desktop application in Java (using JavaFX). This application stores some user information, parts of which are sensitive. For example, if the user configures a proxy, it ...
Mathieu THEBAUD's user avatar
3 votes
1 answer
10k views

Client Side or Server Side Calculations?

I was wondering about client side vs server side calculations regarding websites that provide some convenience type service. For example, an online website where you input a certain date and the ...
JayJuly's user avatar
  • 41
2 votes
1 answer
138 views

Where should my method(s) that connect to DynamoDB go?

I'm a Java developer working on a new module for my app that connects to, inserts, and updates DynamoDB information. For a lot of our projects, I used an MVC design pattern with a service layer to ...
aCarella's user avatar
  • 329
4 votes
2 answers
1k views

Design for client-server synchronisation

Background I am working on improving the backend design for a video game. The game is live and working fine, but we want to improve various things. As a video game studio, we often do events which ...
turnip's user avatar
  • 1,667
4 votes
1 answer
231 views

What is exactly meant by the term "API client"

I'm reading Robert Sedgewick's Algorithms book and I often see the term API client. Please take a look at this exercise: Write an iterable Stack client that has a static method copy() that takes a ...
Mikayil Abdullayev's user avatar
3 votes
4 answers
18k views

Difference between REST server and REST client

I'm reading articles about REST including a tutorial. I've seen this site http://www.vogella.com/tutorials/REST/article.html, and there is a part for explaining the rest as: In a REST based ...
grapes berry's user avatar
1 vote
1 answer
416 views

Is it good practice to save data client-side when it is retrieved from database?

Let's say I have a database with users, groups and messages at the groups. And I have 3 views: Profile view: Where all the details of the user is shown. Groups view: Where all the groups are shown. ...
Soundwave's user avatar
  • 143
-1 votes
1 answer
208 views

Complete statelessness, how to save password on client in secure way

Thinking about statelessness I wonder how I can overcome the issue of saving the user's password on the client side in a secure but also comfy way. I assume the client always sends credentials to the ...
Sorona's user avatar
  • 139
1 vote
2 answers
317 views

Requiring GPL for clients of AGPL Server

I am working on a piece of server software that is licensed under the AGPL. I would like to require that all clients to it be released under a free license (GPL preferable, but I'm open to other ...
Zell Faze's user avatar
  • 113
0 votes
2 answers
62 views

Allowing only users of the official client to upload media to my server. Possible?

I've been toying with a project idea for a while now but can't quite settle on one important detail. The plan is to write a client that can author and upload WebMs to a server for global viewing (...
user avatar
1 vote
5 answers
665 views

Should a client check for valid parameters?

I'm writing a Java client library for a simple API service and I was wondering how much should I be strict for invalid values. For example for an endpoint a parameter should not exceed a certain ...
Enrichman's user avatar
  • 197
1 vote
1 answer
688 views

REST client library design

I have API accessible via REST. I want to develop library for it. Now, question is, how heavy should the library be? What is the best practice here? Should I wrap the whole API in objects and ...
graywolf's user avatar
  • 175
2 votes
1 answer
3k views

What are the pros and cons of using these Multithreading Models in a Client/Server Architecture

In my classes of parallel programming the teacher mentioned three models, dynamic thread creation (create threads according to demand), thread pool (create a fixed amount of threads) and mixed or ...
OiciTrap's user avatar
  • 729
3 votes
2 answers
196 views

How should I refer to data bound columns?

I work often with data-bound applications with WinForms; records are pulled from a database and updated in a client application that I write. Stored procedures are used for all database transactions ...
christophos's user avatar
0 votes
1 answer
146 views

Extensible web application where users can upload client-side code

I have a simple web application built with Angular which fetches some state from a web server and shows it to the user. Additionally I want to implement a feature where users are able to customize the ...
Eduardo Gonçalves's user avatar
2 votes
3 answers
249 views

Can one html page with web services replace current server-client technology?

I have everything I need in 2 services in form of REST api's, is it a good idea or even possible to replace my existing asp.net app by writing ONE single html page (embedded with Angular templates) ...
Jenna Leaf's user avatar
3 votes
1 answer
66 views

Quickly reflecting changes across a site to all visitors

Say: I have a website that contains a single toggle switch with 2 states. There are currently 2 (or more) clients viewing the site. and 1 client flicks the toggle switch. How can I reflect that ...
Carcigenicate's user avatar
2 votes
2 answers
323 views

Should a client ever test server response at runtime?

I'm writing a client application that receives a JSON response from a server. In the past I've run into situations where a developer on the server side changes the JSON response in a way that causes ...
neonDion's user avatar
  • 131
1 vote
1 answer
97 views

Send more data, or do client processing?

I have a conceptual problem that I want feedback on. First and foremost, the layout of my system. It contains a server, with many clients connected to it. The clients get fed data from the server at ...
AllFallD0wn's user avatar
2 votes
1 answer
3k views

Rest Client API design and implementation (with RestEasy)

I am working on a design to create a generic rest client for our application for current and future integration's with multiple services (different external systems). Following is a high level diagram ...
bornleo's user avatar
  • 121
1 vote
1 answer
428 views

Separate GUI for clients

I am writing a game in which I have a Java server/client system set up. Everything is working great, but I reached a slight problem. I have set up a basic health system, and a GUI to go with it (for ...
Carl-Fredrik Nyberg Brodda's user avatar
14 votes
3 answers
58k views

Pushing data from Server to Client without a client request?

I've noticed while browsing Stack Exchange that there are dynamic notifications like "3 new messages, click to show". I want to have this kind of dynamic updating for what I'm about to explain. Let's ...
Eric Guan's user avatar
  • 325
0 votes
3 answers
758 views

Client-Server Application Object with child Objects

Actually I'm going to build an Client Server Application, at the Login I recive the User Object from the Server. An user has a List of tasks, but I don't want to load them at the Login. So what would ...
Ced's user avatar
  • 107
1 vote
1 answer
473 views

Software architecture confusion App-Server/Client

i have a question about the following software architecture: So, there is one database, an app server, which provide a restful service, a client and a framework, used by the app server and the client....
BendEg's user avatar
  • 149
2 votes
1 answer
938 views

An embedded C developer wishing to interface some code with a web page

Okay, so as the title says, I'm an embedded C/C++ developer. Right now, I'm working on a project that involves a client/server C application. The server side of the application is running on ...
justynnuff's user avatar
0 votes
1 answer
193 views

Custom mobile app and custom server app [duplicate]

I have this little bit simple and general question. Let's say I build an android app which requires an online server to communicate with. The thing is that I want to make the communication on my own ( ...
Кристиян Кацаров's user avatar
6 votes
2 answers
659 views

How to handle a large amount of authenticated clients

I currently have made a multithreaded server in c++ for windows, where each connected client gets a thread to themselves which stays running until the client's socket is closed. When a client connects,...
hopeless_nerd's user avatar
3 votes
1 answer
177 views

What's best for a client library: userland code or schema files?

I'm building a client library that consumes a collection of OpenStack API services. I know that as time goes on more services will be added - so I want to come up with a clean and neat way of ...
hohner's user avatar
  • 233
2 votes
2 answers
8k views

What kind of webservice can be called with just a browser url?

Can a webservice be written in such a way that it can be called via just a browser url? For eg. if the webservice is called GetStockQuote, then it should be callable by the following url on the ...
user93353's user avatar
  • 441
2 votes
2 answers
2k views

When is the private key given to the client? [closed]

http://www.thebuzzmedia.com/designing-a-secure-rest-api-without-oauth-authentication/ I've been reading the article and I haven't really grasped it yet. When is the private key given to the client? ...
user2821171's user avatar