Git Product home page Git Product logo

Comments (13)

kris914g avatar kris914g commented on July 17, 2024 2

It would be nice to include some more about how to setup Octane properly.

from bref-laravel-bridge.

georgeboot avatar georgeboot commented on July 17, 2024 2

I believe it uses neither!

All it does is spin up a long lastig http kernel and process requests using it.

Since there is no concurrency anyway (each lambda always processes 1 event at a time) that's all that's needed.

from bref-laravel-bridge.

tillkruss avatar tillkruss commented on July 17, 2024 1

@kris914g All you need is:

functions:
  web:
    handler: php/runtime.php
    timeout: 20
    reservedConcurrency: ${param:reservedConcurrency}
    provisionedConcurrency: ${param:provisionedConcurrency}
    environment:
      APP_RUNTIME: octane
      BREF_LOOP_MAX: 250
      BREF_BINARY_RESPONSES: 1
    layers:
      - ${bref:layer.php-81}
    events:
      - httpApi: '*'

from bref-laravel-bridge.

tillkruss avatar tillkruss commented on July 17, 2024 1

Correct, octane will be installed via this bridge anyhow. Also Swoole and RoadRunner don't work on Lambda. I've cloned the approach Vapor uses to run Octane.

from bref-laravel-bridge.

tillkruss avatar tillkruss commented on July 17, 2024 1

Okay, that should definitely be included in the readme :D if you want I can try opening a PR that will describe Queues and Octane better in the readme if you want

I'd love that! Check out what @georgeboot does here: https://github.com/cachewerk/bref-laravel-bridge/pull/29/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5

from bref-laravel-bridge.

kris914g avatar kris914g commented on July 17, 2024 1

Super! I will come up with something in the following days.

from bref-laravel-bridge.

kris914g avatar kris914g commented on July 17, 2024

Do we have an example somewhere about how to setup Octane, right now I have tried with Swoole and default config, but I'm not sure if it is setup and registered with the bride at all. I also included the octane runtime in the serverless config.

from bref-laravel-bridge.

kris914g avatar kris914g commented on July 17, 2024

Thanks!
so it doesn't matter if I chose RoadRunner or Swoole? 😄

from bref-laravel-bridge.

kris914g avatar kris914g commented on July 17, 2024

Ohh if that is the case it makes more sense. Does that also mean that I actually don't have to install octane on my application since it seems to be included in the bridge?

from bref-laravel-bridge.

kris914g avatar kris914g commented on July 17, 2024

Okay, that should definitely be included in the readme :D
if you want I can try opening a PR that will describe Queues and Octane better in the readme if you want

from bref-laravel-bridge.

tillkruss avatar tillkruss commented on July 17, 2024

What are you two thinking about moving most of the README to the GitHub wiki shortly?

from bref-laravel-bridge.

kris914g avatar kris914g commented on July 17, 2024

It sounds good, perhaps it is also easier to keep an overview when the readme becomes more comprehensive.

from bref-laravel-bridge.

szepeviktor avatar szepeviktor commented on July 17, 2024

A 5 minute video would be very popular.
Screen share with a small webcam image.

from bref-laravel-bridge.

Related Issues (15)

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.