Skip to content

Add option to deploy listeners using Falcon#150

Merged
davidor merged 3 commits intomasterfrom
falcon-web-server
Jan 23, 2020
Merged

Add option to deploy listeners using Falcon#150
davidor merged 3 commits intomasterfrom
falcon-web-server

Conversation

@davidor
Copy link
Copy Markdown
Contributor

@davidor davidor commented Jan 17, 2020

This PR adds the option to deploy listeners using the Falcon web server as an alternative to Puma. Falcon is a web-server built on top the async lib so we can use it when the listeners are configured to use the async Redis lib instead of the blocking one.

This is still experimental. It works, but needs more testing. Also, there's some functionality provided by Puma that's not in Falcon, you can see that in lib/3scale/backend/server/falcon.rb. The good news is that this allows us to configure auto-scaling. I've added a guide to configure that in Openshift (#149 ).

Comment thread Gemfile.base
gem 'prometheus-client'
gem 'yabeda-prometheus', '= 0.1.4'
gem 'async-redis', '~> 0.4.1'
gem 'falcon', '~> 0.34'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License of Falcon as a new dependency is OK?
Passes our license_checker?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's MIT.

Copy link
Copy Markdown
Contributor

@unleashed unleashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at the stop comment. I'd say having that will be required to use this more than just an experiment. Otherwise, for just experimenting, it looks ok.

Comment thread Gemfile.on_prem.lock
Comment thread lib/3scale/backend/server/falcon.rb
Comment thread lib/3scale/backend/server/falcon.rb Outdated
@davidor davidor merged commit be23dc1 into master Jan 23, 2020
@bors bors Bot deleted the falcon-web-server branch January 23, 2020 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants