Questions tagged [stateful]

A stateful app is one that stores information about what has happened or changed since it started running

A stateful app is one that stores information about what has happened or changed since it started running. Any public info about what "mode" it is in, or how many records is has processed, or whatever, makes it stateful.

489 questions
7
votes
1 answer

Keras LSTM TimeDistributed, stateful

Is there any detailed explanations how do TimeDistributed, stateful and return_sequences work? Do I have to set shuffle=False in both cases? Does it work for windows (1-11, 2-12, 3-13 etc.) or should it be used in batches (1-11, 12-22, 13-33…
Alex Ozerov
  • 988
  • 8
  • 21
7
votes
1 answer

Which parts of HTTP/2 are stateful?

Unlike the original stateless HTTP/1, HTTP/2 has many stateful components. These parts of HTTP/2 are stateful: Header blocks refer to a stateful unsigned 31-bit integer called a stream identifier Frames also reference the same stateful stream…
Zamicol
  • 4,626
  • 1
  • 37
  • 42
7
votes
1 answer

iptables -j vs. -g parameters

From the man page of my distro, I am especially interested in the bold part below. -j, --jump target This specifies the target of the rule; i.e., what to do if the packet matches it. The target can be a user-defined chain (other than the one this…
sjas
  • 18,644
  • 14
  • 87
  • 92
6
votes
0 answers

Stateful widget consumer widget builds twice and hence calls initState twice. How to stop this from happening?

So for my project, I am using Riverpod, and I am creating the home page of my app. The tree looks like this -> CommunityView(Stateful Widget) WillPopScope ProviderScope Consumer Scaffold ...and so on Now inside the build method of the CommunityView…
6
votes
1 answer

Use kafka to detect changes on values

I have a streaming application that continuously takes in a stream of coordinates along with some custom metadata that also includes a bitstring. This stream is produced onto a kafka topic using producer API. Now another application needs to process…
Nikhil Sahu
  • 2,463
  • 2
  • 32
  • 48
6
votes
0 answers

spark structured streaming multiple aggregation keys on same stream data

Am a newbie in Spark and I have this prototype application based on Spark Structured Streaming wherein am continuously reading stream data from Kafka. On this stream data lets say I have to apply multiple aggregations: 1) group by key1 and generate…
dipu20
  • 61
  • 2
6
votes
1 answer

How can I pass the exact same state of an custom allocator to multiple containers?

I'm writing an allocator with a reference to another instance of some class which tracks the number of allocated bytes. below is a minimal example of what I'm trying to do (adapted from here), just without the whole memory tracking class, instead I…
Robert
  • 127
  • 1
  • 10
6
votes
3 answers

Is it possible to create stateful web service in C#?

I have now something like this: public class Service1 : System.Web.Services.WebService { [WebMethod] public string Method1() { SomeObj so = SomeClass.GetSomeObj(); //this executes very long time, 50s and more return…
Primoz
  • 4,079
  • 17
  • 56
  • 67
6
votes
2 answers

Is the actor model not an anti-pattern, as the fire-and-forget style forces actors to remember a state?

When learning Scala, one of the first things I learned was that every function returns something. There is no "void"-function/method as there is, for instance in Java. Thus many Scala-functions are true functions, in a mathematic way, and objects…
Felix Gehring
  • 312
  • 1
  • 9
6
votes
2 answers

How does Scala's Lift manage state?

I'm quite impressed by what Lift 2.0 brings to the table with Actors and StatefulSnippets, etc, but I'm a little worried about the memory overhead of these things. My question is twofold: How does Lift determine when to garbage collect state…
Stefan Mai
  • 23,367
  • 6
  • 55
  • 61
6
votes
2 answers

ORM for stateful application. Does EF fit? Or any?

I need an ORM that is suitable for stateful application. I'm going to keep entities between requests in low-latency realtime game server with persistent client connections. There is an only 1 server instance connected to database so no data can be…
Vlad
  • 3,001
  • 1
  • 22
  • 52
6
votes
4 answers

How to keep stateful web clients in sync, when multiple clients are looking at the same data?

In a RIA web client, created with GWT, the state is maintained in the web client, while the server is (almost) stateless (this is the preferred technique to keep the site scalable). However, if multiple users looking at the same data in their…
Hilbrand Bouwkamp
  • 13,509
  • 1
  • 45
  • 52
6
votes
3 answers

Maintain a variable value between program runs

I have a simple c# console application that is scheduled after every 5 mins. Every invocation of the program requires the output of the last run. What I am doing right now is using a text file and store the result in it. next time when it runs it…
Akshay J
  • 5,362
  • 13
  • 68
  • 105
5
votes
2 answers

extjs stateful grid remove sort

I have a problem with statefull grid. I do not want to save the sort state but I do want to save all other options (column position, column width, grouping etc.) For now I have tried this with stateEvents option, but it saves whole state of grid…
Hubert_J
  • 453
  • 1
  • 6
  • 18
5
votes
2 answers

Flutter/Dart: Pass Parameters to a Stateful Widget?

I need to call pass my title and oldtitle parameters to my EditPage Stateful widget. But if I do this; class EditPage extends StatefulWidget { String title; String oldtitle; EditPage({this.title, this.oldtitle}) The strings are not…
Meggy
  • 1,491
  • 3
  • 28
  • 63
1 2
3
32 33