Software Development - (Stateless|Stateful)

Card Puncher Data Processing

About

Stateless or state-full refers to the fact that a unit of program (process, function, procedure) have a state or not (Ie variable that may change).

Type

Stateless

In a client-side architecture, stateless mechanism means that the state is never saved in the server memory but is on the client side

Parallel aggregate operations over a variety of data sources, including even non-thread-safe collections such as ArrayList. are possible only if we can prevent interference with the data source during the execution. For most data sources, preventing interference means ensuring that the data source is not modified at all during the execution.

Statless pocess are:

The process may be started, stopped, or restarted at any time. See Software Design - Recovery (Restartable)

Stateful

Execution results may be non-deterministic or incorrect if the behavioral parameters to the operations are stateful.

A stateful parameter is one whose result depends on any state which might change during the execution. The results for the same input could vary from run to run, due to thread scheduling differences, whereas, with a stateless expression the results would always be the same.

The best approach is to avoid stateful behavioral parameters entirely; there is usually a way to restructure the pipeline to avoid statefulness.

Documentation / Reference





Discover More
Converter Basics
Kafka Connect - Task

Task is a connector implementation on how data is copied to or from Kafka These tasks have no state stored within them. Task state is stored in Kafka in special topics and managed by the associated...
Data System Architecture
Parallel Programming - (Function|Operation)

A function or an operator has to be: commutative and associative in order to be computed correctly in parallel. A properly constructed operation is inherently parallelism, so long as the function(s)...
React - Local component state (known as State)

This page is the local state of a component. In React, this local state is known as state A change of value triggers a rendering State is useful for handling data that is local to the component...
React - State

This page is UI State in React. The Local state to a component in react is known as: state. A change of state triggers a render ref. A change of ref value does not triggers a render The global...
Chrome Cookies
What is a Cookie? (HTTP Set-Cookie Header )

A cookie is: a key-value data with some associated that control how the browser should manage them. set by a HTTP response via the set-cookie header The received cookies by the browser can be...



Share this page:
Follow us:
Task Runner