Questions tagged [fifo]

Any structure in which the First object In is the First object Out. Synonyms include queue, and pipe.

Any structure in which the First object In is the First object Out.

See:

1105 questions
9
votes
2 answers

AWS SQS FIFO queue -- Can I have multiple consumers pulling 10 messages at time?

AWS sqs FIFO queues are limit the consumer to being able to pull 10 messages at a time. Can I have multiple consumers all pulling 10 messages at a time to increase the amount of messages I can process at a time?
Lisa Faye Cook
  • 111
  • 1
  • 4
9
votes
8 answers

How to feed information to a Python daemon?

I have a Python daemon running on a Linux system. I would like to feed information such as "Bob", "Alice", etc. and have the daemon print "Hello Bob." and "Hello Alice" to a file. This has to be asynchronous. The Python daemon has to wait for…
mimipc
  • 1,354
  • 2
  • 14
  • 28
9
votes
1 answer

Persistent connection in Bash script

I'm trying to create a persistent connection using bash. On terminal 1, I keep a netcat running as a server: $ nc -vlkp 3000 Listening on [0.0.0.0] (family 0, port 3000) On terminal 2, I create a fifo and keep a cat: $ mkfifo fifo $ cat > fifo On…
9
votes
2 answers

Creating temporary named fifo in *nix system

I have some tasks requiring massive temporary named pipes to deal with. Originally, I just simply think that generate random numbers, then append it as .fifo be the name of named pipe. However, I found this post: Create a temporary FIFO…
Jason Hu
  • 6,239
  • 1
  • 20
  • 41
9
votes
2 answers

Write/Read to/from FIFO files - linux

I've been trying to wrap my head around FIFO, and came up with a simple program of server and client. I'm not trying to do anything fancy, just to have one process that will play a role of 'server', this process will 'listen' to any messages…
so.very.tired
  • 2,958
  • 4
  • 41
  • 69
9
votes
4 answers

Designing your app to handle FIFO in Amazon SQS

From the Amazon SQS FAQ page: Amazon SQS does not guarantee FIFO access to messages in Amazon SQS queues, mainly because of the distributed nature of the Amazon SQS. If you require specific message ordering, you should design your application…
Gaurav Gupta
  • 5,380
  • 2
  • 29
  • 36
9
votes
4 answers

Can Sql Server BULK INSERT read from a named pipe/fifo?

Is it possible for BULK INSERT/bcp to read from a named pipe, fifo-style? That is, rather than reading from a real text file, can BULK INSERT/bcp be made to read from a named pipe which is on the write end of another process? For example: create…
Peter Radocchia
  • 10,710
  • 2
  • 34
  • 56
8
votes
1 answer

Are there repercussions to having many processes write to a single reader on a named pipe in posix?

I am writing a program for POSIX (OSX) where I will have many processes sending messages to one listener, who is essentially a logging thread. All of the processes are running in seperate programs, and using a single named pipe (FIFO) that many…
Aftermathew
  • 1,958
  • 2
  • 13
  • 21
8
votes
1 answer

How to come back from the pipe file?

Using a mkfifo command we can create our pipe file. After that, I just opened that file using a vim editor. mkfifo pipe_file vim pipe_file But i can't come back to my terminal, How can I comeback to terminal?
Bhuvanesh
  • 1,269
  • 1
  • 15
  • 25
8
votes
2 answers

Using fifo open in non-blocking mode with select

I have two processes A and B. The communication flow is always A -> B, but I need to do it using a named pipe, because I must use the pipe file descriptor in a select call inside the B process, and the data written to the pipe must persist when any…
Victor Dodon
  • 1,796
  • 3
  • 18
  • 27
7
votes
1 answer

Need mysql query FIFO

please help me how to create mysql query for reporting in fifo method, table persediaan_source id id_barang jumlah harga tanggal id_jenis_transaksi 89 26 12 1050000 2022-07-15 05:55:23 1 90 26 8 0 2022-07-15…
7
votes
2 answers

Trying to understand Azure Service Bus Sessions

So I am trying to understand Azure service bus Session ID for creating FIFO in my queue. The idea I have is pretty straight forward but I don't know if its the right way to thing when it comes to FIFO. What i am thinking are in these steps fro…
H4p7ic
  • 1,669
  • 2
  • 32
  • 61
7
votes
1 answer

How to write to already opened FD in golang

I have the following opened FD (lsof output): auth 11780 root 5w FIFO 0,10 0t0 72061824 pipe I need to write something in FD 5 (FIFO) in go. In C it is performed by the syscall write(): 19270 write(5, "*************", 12…
Zhivko Angelov
  • 139
  • 2
  • 7
7
votes
11 answers

Efficient data transfer from Java to C++ on windows

I'm looking to stream lots of data (up to ~1 Gbit) from Java to a C++ application (both on the same machine). I'm currently using a FIFO on Linux but need a Windows solution too. The most cross-platform method seems to be a local socket, but: a)…
AdmiralSausage
7
votes
1 answer

Getting readline to block on a FIFO

I create a fifo: mkfifo tofetch I run this python code: fetchlistfile = file("tofetch", "r") while 1: nextfetch = fetchlistfile.readline() print nextfetch It stalls on readline, as I would hope. I run: echo "test" > tofetch And my program…
Dan
  • 71
  • 1
  • 2