The difference between Stateful and Stateless systems

Asked By 10 points N/A Posted on -
qa-featured

 

What is a stateless system? What is as stateful system? What is the impact of state on scaling? What is parallelism? What is the impact of state on parallelism? Name some stateless protocols .The Server Message Block is a stateful protocol. Can you explain how? In terms of security which one is a better protocol: stateful or stateless?

SHARE
Answered By 0 points N/A #200095

The difference between Stateful and Stateless systems

qa-featured

To define the term Stateless and stateful just  check out the give program.

STATELESS
//The state is derived by what is passed into the function

function int addOne(int number)
{
    return number + 1;
}

Stateful

//The state is maintained by the function

private int _number = 0; //initially zero 

function int addOne()
{
    _number++;
    return _number;
}

 

 

Login/Register to Answer

Related Questions