Skip to main content

Questions tagged [protocol]

3 votes
2 answers
425 views

Why do database protocols use fixed endianness instead of native server endianness?

Most database wire protocols mandate a specific byte order for multi-byte integers: PostgreSQL: big-endian (network byte order) MySQL: little-endian MongoDB: little-endian (BSON format) OracleDB: ...
ybjeon01's user avatar
1 vote
4 answers
263 views

A passive LRU cache with locks

Context I'm working on a client-server-agent application, where server distributes tasks supplied by clients over agents. Server is passive, all communications are initiated by clients and agents. ...
Basilevs's user avatar
  • 4,484
0 votes
1 answer
85 views

Clarification on Model Context Protocol: Message Format vs. Communication Architecture?

I'm currently trying to understand protocolls such as A2A and MCP. While doing so, I wasn't sure whether MCP is responsible for defining: The structure and required fields of JSON messages (e.g., ...
Flower's user avatar
  • 3
0 votes
2 answers
107 views

Deserializing serial protocol enums: Recoverable or unrecoverable errors?

I am currently implementing a library in Rust that implements a proprietary serial protocol. The protocol specifies several enum values, that mostly are returned by the hardware as u8s (bytes), but ...
Richard Neumann's user avatar
0 votes
2 answers
308 views

What IP protocol number should I use for my custom IP protocol? [closed]

I want do develop an IP based protocol oriented to smallest possible data overhead. For example UDP adds overhead of 8 bytes header. I want zero header. I will use this protocol via 2G mobile network ...
user1576055's user avatar
1 vote
2 answers
639 views

Software Design: Decoupling when highly dependent on a third party library

As part of an university project I am currently working on an eeg-biosignal classifier. While the project itself doesn't really focus on design ("anything that works") I am trying to learn ...
J. Lo's user avatar
  • 21
6 votes
3 answers
3k views

Difference between API and protocol?

What's the difference between an API and a protocol? To use a specific example: Is Coinbase's choice to refer to its WebSocket client specification as an "API" appropriate? It seems that ...
Katie's user avatar
  • 269
1 vote
2 answers
75 views

adding optional code for bad protocol state check

I've got a GRPC API that I'm designing. It includes an RPC method that requires the caller follow-up with another API call. Some pseudo-code a client might write: val apiInstsance = makeAPIInstance() ...
Groostav's user avatar
  • 257
-1 votes
2 answers
149 views

Protocol Design robustness against corruption

I am currently in the design phase of a binary protocol which is intended to be agnostic of the transport layer, meaning it should work on top of for example websockets as well as serial device to ...
Curunir's user avatar
  • 119
-1 votes
2 answers
343 views

What are the benefits of HTTP statuses compared to custom JSON based protocol?

I am currently developing a service and a client and I use HTTP statuses for communicating certain info. For example, I have a POST /vikings endpoint that starts a long running process to create a ...
Anton Daneyko's user avatar
0 votes
2 answers
1k views

Is it possible to implement a RESTful API with a protocol other than HTTP(S)?

I was confused by the distinction between REST and HTTP, and I found this article that cleared things up for me. In summary, it explained that REST is a set of general principles for web communication,...
T Hummus's user avatar
  • 111
1 vote
2 answers
261 views

Should the client handle unsolicited protocol events from the backend?

This is a very generic question not much related to any language/protocol. I have a desktop application and a backend that communicate via TCP. Most protocol events are paired -- request/response. For ...
badSantos's user avatar
  • 137
1 vote
0 answers
71 views

advice for web communication protocol for "streaming" multiple JSON objects to multiple clients

As a hobby / to learn I am building an app in JavaScript using Node.js where a component of it will take input from a client, send it to a server, and then broadcast it to other clients. For ...
Leftover Salad's user avatar
-6 votes
1 answer
2k views

What are services and interfaces of a layer in a computer network model? [closed]

In Tanenbaum's Computer Networks book Three concepts are central to the OSI model: Services. Interfaces. Protocols. Probably the biggest contribution of the OSI model is that it makes the ...
Tim's user avatar
  • 5,555
2 votes
1 answer
701 views

Creating an internet gateway for a Bluetooth Low Energy device

I have a device that connects using Bluetooth Low Energy (BLE). I want it to communicate with a server over the internet using a smartphone as a gateway. I have thought of different approaches and I ...
RealTimeEngineer91's user avatar

15 30 50 per page
1
2 3 4 5 6