Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 17 21:16
    clue edited #221
  • May 17 21:09
    clue milestoned #221
  • May 17 21:09
    clue labeled #221
  • May 17 21:09
    clue opened #221
  • May 17 21:09
    clue labeled #221
  • May 17 21:09
    clue labeled #221
  • May 17 20:58
    clue labeled #220
  • May 17 20:58
    clue review_requested #220
  • May 17 20:58
    clue review_requested #220
  • May 17 20:58
    clue milestoned #220
  • May 17 20:58
    clue opened #220
  • May 17 20:34
    clue review_requested #219
  • May 17 20:34
    clue review_requested #219
  • May 17 20:33
    clue labeled #219
  • May 17 20:33
    clue opened #219
  • May 17 20:33
    clue milestoned #219
  • May 15 21:39
    clue labeled #253
  • May 15 21:39
    clue closed #253
  • May 15 21:39
    clue commented #253
  • May 15 21:22
    RobertEcker commented #253
Cees-Jan Kiewiet
@WyriHaximus
They are only in ^4@dev at the moment until we're 100% sure about the API and tag a stable release
blieb
@blieb
ok
but it is safe to use I guess? maybe just some little changes for final?
Cees-Jan Kiewiet
@WyriHaximus
Doubt there will be changes before final, so it should be safe to use. Already using it in production myself
blieb
@blieb
ok tnx :D
blieb
@blieb
yes not my code looks a lot easier with the await() :D
Mariano Benítez Mulet
@pachico
Hi everyone! What is the best way to run AWS SDK in a ReactPHP application? I'm kinda frustrated to see blocking http calls :(
Christian Lück
@clue

Hi everyone! What is the best way to run AWS SDK in a ReactPHP application? I'm kinda frustrated to see blocking http calls :(

@pachico Answered via https://twitter.com/another_clue/status/1514216819812409355

There's hope we're going to see more async APIs in the future with fibers:
https://github.com/reactphp/async

Blocking calls can be avoided by running them in a child process like this:
https://github.com/clue/reactphp-pq

If you're looking for async S3, you may also use this:
https://github.com/clue/reactphp-s3

Ing. Manuel Ramirez
@ManuelVR461
tengo el siguiente error al intentar conectarme a servicio socket creado con ratchet: PHP Fatal error: Uncaught Error: Call to undefined function React\Promise\reject(). revise el codigo y dentro de las clases veo que llaman en metodo reject sin la preposion $this-> esto es correcto? alguien me puede ayudar al respecto?
Cees-Jan Kiewiet
@WyriHaximus
@ManuelVR461 Sounds like you didn't run composer install?
Ing. Manuel Ramirez
@ManuelVR461
no. ya que mi codigo lo hago desde cero sin utilizar composer, por lo que extraigo los src de las librerias implemento y contruyo y ejecuto autoload por cada uno.
image.png
image.png
Cees-Jan Kiewiet
@WyriHaximus
Google was only able to translate half of that. But if you set up your own autoloader you also need to load the functions file that cames with react/promise: https://github.com/reactphp/promise/blob/2.x/composer.json#L37
Ing. Manuel Ramirez
@ManuelVR461
ok. lo intentaré. gracias!
Cees-Jan Kiewiet
@WyriHaximus
:+1:
Christian Lück
@clue

New RT by @reactphp:

About to release signal handling support for @x_framework finally 🚀

Especially excited to improve Docker support somewhat. Feels so good to finally ship it after working on it for the last few weeks. 💪
#async #php #opensource

— Christian Lück (@another_clue) 2022-04-20 08:30

blieb
@blieb
oh maybe I also need to build in the signals in my projects that run in docker containers :)
Cees-Jan Kiewiet
@WyriHaximus
Not just docker containers, it's good practice to always do it and cleanly stop your applications :)
blieb
@blieb
hehe ok, I never do that :o
Cees-Jan Kiewiet
@WyriHaximus
@blieb This stops the HTTP server you created above from accepting new connections but still finish the current ones before fully shutting down and ending the event loop: https://gist.github.com/WyriHaximus/f4afc1fda73eca8ef5d27ed2b55bb2f5
Marc Morera
@mmoreram
Hello! I'm checking the new Filesystem implementation, and I have a question
Is there a place where we can find an example of how work with Streams while reading a file?
Cees-Jan Kiewiet
@WyriHaximus
@mmoreram Reading or writing? Can write up some examples how to do both with the current back to basics API
11 replies
blieb
@blieb
@WyriHaximus Ah Tnx. I will add that. Always better to complete connections first before quitting 😊
Christian Lück
@clue

New RT by @reactphp:

This is the smallest @reactphp #HTTP server I've written so far, just a single line:

— Cees-Jan Kiewiet (@WyriHaximus) 2022-04-20 18:54

Cees-Jan Kiewiet
@WyriHaximus
@blieb yeah otherwise you risk cutting it off while handling a request
Christian Lück
@clue

New RT by @reactphp:

All but the top left graph are my home #kubernetes nodes running dataming pods utilizing the upcoming @reactphp filesystem v0.2. Those pods run the #php script in the second image (dropped some BP from it) and with 5 fibers are doing around 20MB/s per pod while mining the data:


— Cees-Jan Kiewiet (@WyriHaximus) 2022-04-21 09:20

Christian Lück
@clue

New RT by @reactphp:

Flow PHP reached another milestone today! 🎉
Async pipeline abstraction was just merged into 1.x branch; it's implemented by @asyncphp and @reactphp adapters.

This makes data processing in #php a lot faster but still under constant memory consumption.

https://github.com/flow-php/etl/blob/1.x/README.md\#asynchronous-processing

— Norbert Orzechowicz (@norbert_tech) 2022-04-26 20:46

Christian Lück
@clue

New RT by @reactphp:

Say hello to our new intern Tico! 👋

Making great progress to show live LED notifications when new @GitHub tickets arrive.

@Raspberry_Pi + LED setup
@x_framework HTTP routing
✅ Request to route triggers LED

Upcoming webhook integration is going to be 🔥

— Christian Lück (@another_clue) 2022-05-02 13:25

ash-m
@ash-m
I wrapped a symfony kernel I was already using in ReactPHP, but I am very new to the framework. I am not entirely sure what flushes symfony's output to the console (eg debug info), but I would guess it happens in during the $response->send() call which calls a shutdown function (such as fastcgi_finish_request()); I am not sure how to get output in my logs after I get a response back from the kernel in my HttpServer callback
^ can anyone help me with that?
Christian Lück
@clue
@ash-m Sounds like you may want to take a look at https://driftphp.io if you're looking for a Symfony integration or at https://framework-x.org/ if you're looking for a more idiomatic alternative 👍
Christian Lück
@clue

New tweet by @reactphp:

We just shipped a bunch of our fancy stickers! 😍

Plenty more stickers here, who’s interested? Any other community events or upcoming @ReactPHP talks?

We love to support the community! ❤️ #php #phpc

— ReactPHP (@reactphp) 2022-05-03 11:58

Volker
@skydiablo
Volker
@skydiablo
Cees-Jan Kiewiet
@WyriHaximus
@skydiablo Cool! Will have a look this afternoon :+1:
Christian Lück
@clue

New RT by @reactphp:

Let's start this week with a new release of my async Redis client implementation for @ReactPHP! 🚀

Now finally with support for PHP 8.1.
#php81 #OpenSource

Enjoy your week!

https://github.com/clue/reactphp-redis/releases/tag/v2.6.0

— Christian Lück (@another_clue) 2022-05-09 10:12

Mihail Feraru
@JustBeYou
Hi, is there any way to detect when a writable stream actually flushed? I'm calling ->end() on a socket connection and I would like to close the processes after the buffer was flushed, but I see that there is no way to detect the event.
Christian Lück
@clue

New tweet by @reactphp:

Great talk by Volker @hacklabor (🇩🇪 German)!

Some very interesting use cases for low-level networking with @ReactPHP in there. #eventdriven #php

Thank you for the shout out and for all your work and support! 🔥
https://youtu.be/hAbtB1z-Kpk

— ReactPHP (@reactphp) 2022-05-10 14:50


👀 46:46 /cc @skydiablo
😆

@clue YAY!: https://github.com/clue/reactphp-redis/releases/tag/v2.6.0

@WyriHaximus You're fast! Prepared the release announcement only a couple of minutes later 😃


Hi, is there any way to detect when a writable stream actually flushed? I'm calling ->end() on a socket connection and I would like to close the processes after the buffer was flushed, but I see that there is no way to detect the event.

@JustBeYou The stream should emit a close event once the buffer is flushed and the stream is closed 👍

Fritz Gerneth
@fritz-gerneth
I am not blind, right - there is no promise utility function that takes an array of promises, and returns the resolved and rejected values of all of them? all , map only return resolved values? But sometimes I'd like access to rejected values (exceptions) too :)
Christian Lück
@clue
@fritz-gerneth I think you're looking for a settle() function? See reactphp/promise#101
1 reply
Cees-Jan Kiewiet
@WyriHaximus
@clue Brought to you by GitHub's release notifications :D
Christian Lück
@clue

New RT by @reactphp:

Time to release v1.2.0 of my streaming CSV parser and encoder for @ReactPHP. 🚀

This release features PHP 8.1 support and improves API and documentation for easier usage.
#php81 #OpenSource

“Go,check,it,out!\n”

https://github.com/clue/reactphp-csv/releases/tag/v1.2.0

— Christian Lück (@another_clue) 2022-05-13 11:53

Christian Lück
@clue

New RT by @reactphp:

Why bother with memory limits? 🔥 #async #php

https://framework-x.org/docs/best-practices/deployment/\#memory-limit

— Framework X (@x_framework) 2022-05-13 14:57