Messages

Messages in nyssr.net are asynchronous and object-to-object. A target waits for incoming messages, processes them, and can send further messages without blocking the rest of the network.
This simple mechanism supports observers, notifications, services, broadcasts, requests, and responses.
Request and response
A message travels from a sender to a receiver. Both addresses are carried in the envelope. When the sender wants an answer, it sets the wantAnswer flag. The receiver can then return a response after processing the request.
Delivery errors are returned even when no response was requested. This explicit handshake is a central difference from queue-oriented techniques such as JMS.
Across the node network
Messages can travel across the complete nyssr.net, regardless of how many nodes are between sender and receiver. The addresses must be valid; routing is handled by the network.
A mesh can offer several paths to the destination. nyssr.net continuously measures the connections and selects a suitable route:
- Open channels remain available after startup
- The route can use multiple nodes
- Link interruptions are detected quickly
- Messages can be rerouted when the network changes
Key idea: Applications communicate with targets, not with network locations. Routing and connection management remain part of the node network.
Why asynchronous messages matter
The sender does not need to wait while another service performs work. The receiver can answer later, notify other targets, or start a separate workflow. This allows many small services to cooperate without a central coordinator.
The same message model is used locally within a node and remotely across the network. That keeps application code consistent as a system grows.
Next steps
Read about Targets to understand message recipients, then continue with CEnvelope for the structure that carries a message.
Related Pages
Freely communicating microservices
Discover how nyssr.net uses active microservices. These stateful components communicate freely and employ working targets and factories for fast, asynchronous distributed communication.
Introduction to nyssr.net
A brief, high-level introduction to the fundamental structure and function of the nyssr.net distributed system, covering core concepts like Nodes, Messages, and Namespaces.
Nodes
The fundamental building block of NYSSR, a node is a compact Java microkernel providing core services like messaging and logging, with all functions loaded flexibly via plugins.
Segments
A group of nodes is called a segment. The communication of nodes across segment boundaries has not yet been conclusively defined.
nyssr.net - Innovative Distributed System
nyssr.net is an innovative Java framework for distributed applications using the Actor Model in a node network. It offers superior scalability, redundancy, and performance for Micro-UIs and services.
Redundant Microservice Registries: Load Balancing and Service Discovery Benefits
Learn about nyssr.net's redundant microservice registries for automatic load balancing and service discovery. Ensures high availability and efficient message routing.