Coder Social home page Coder Social logo

Comments (6)

Dadoum avatar Dadoum commented on July 17, 2024

Yes but it only needs to be run one time at the beginning. Except if I did not understand how works workers

from provision.

trikko avatar trikko commented on July 17, 2024

Workers are separated processes, started by the daemon.

When a worker start @onWorkerStart is called. Just one time for each worker.

from provision.

Dadoum avatar Dadoum commented on July 17, 2024

That's problematic since it seems that I can only use one ADI handle at a time, or it will break. How can I do.

When I compare my old archttp implementation with the new experimental serverino one, I can see that the older one always respond with the needed data while the serverino will fail and break after few requests.

Tested by running this command to stress test the server:

curl 127.0.0.1:6969 & curl 127.0.0.1:6969 &curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 & curl 127.0.0.1:6969 &

from provision.

trikko avatar trikko commented on July 17, 2024

That's problematic since it seems that I can only use one ADI handle at a time, or it will break. How can I do.

But they live in different processes. There is no data shared between responders. Each responder is completly isolated. If you run 4 responder, you're running 4 different instances each one with a single ADI handle. Is this a problem?

from provision.

Dadoum avatar Dadoum commented on July 17, 2024

I don't really know how ADI exactly works. What I described is not related to the location of the ADI instructions (if they are in onServerInit or in onWorkerStart), it happens with both locations. The only thing I really know is that ADI functions break with the serverino version, and that ADI interracts with a file on the filesystem located at ~/.adi/adi.pb.

from provision.

Dadoum avatar Dadoum commented on July 17, 2024

Switching back to archttp for now.

from provision.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.