Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Perl Platform as a Service Shootout
Search
Jade Allen
June 14, 2012
Programming
1
480
Perl Platform as a Service Shootout
Comparing and contrasting various platform as a service provider's Perl support
Jade Allen
June 14, 2012
Tweet
Share
More Decks by Jade Allen
See All by Jade Allen
All About Regular Expressions
jadeallenx
1
230
Hexes, Charms and Spells
jadeallenx
0
140
3 > 2
jadeallenx
0
830
Idiomatic Erlang
jadeallenx
0
130
The Sharp Edges of Leaky Abstractions
jadeallenx
0
92
Sagas: Distributed Transactions Without Locks
jadeallenx
0
550
Before Unix: Early History of Time-Sharing
jadeallenx
0
180
Functional Programming Made Me a Better Perl Developer
jadeallenx
1
340
Assigning Meanings to Programs
jadeallenx
0
180
Other Decks in Programming
See All in Programming
It’s about time to pack Ruby and Ruby scripts in one binary
ahogappa0613
1
1.3k
Hi, have you met Kotlin Multiplatform? | Kotlin User Group Berlin
prof18
1
130
How to implement a RubyVM with PHP?
memory1994
PRO
3
1.4k
1BRC – Nerd Sniping the Java Community (Keynote JCon Slovenia)
gunnarmorling
1
100
スタックトレース始めてみた
kuro_kurorrr
5
1.3k
20240525_社内でPower Platform勉強会開いたら900人来た話
ponponmikankan
0
550
Compose UI for... a light switch? (KotlinConf 2024)
jakewharton
PRO
3
320
AFUP Day Lyon 2024 - DDD !== Archi hexagonale
bgalati
0
190
ウォンテッドリーでのKMPワークフロー / KMP workflow at Wantedly
kubode
0
120
Upgrading Legacy to the Latest PHP Version
afilina
PRO
0
160
新年度から始めるJava言語のファーストステップ2024
tatsuya1bm
0
150
「正の影響力」を目指して書くこと
honey32
2
110
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
Optimising Largest Contentful Paint
csswizardry
13
2.5k
Code Reviewing Like a Champion
maltzj
516
39k
Rebuilding a faster, lazier Slack
samanthasiow
74
8.3k
Ruby is Unlike a Banana
tanoku
96
10k
Fireside Chat
paigeccino
22
2.7k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Thoughts on Productivity
jonyablonski
60
3.9k
Writing Fast Ruby
sferik
623
60k
The Cost Of JavaScript in 2023
addyosmani
22
4k
Being A Developer After 40
akosma
67
580k
Transcript
Perl Platform as a Service Shootout Mark Allen
[email protected]
https://github.com/mrallen1
https://metacpan.org/author/MALLEN
"Platform as a Wha?" Coders don't have to be system
administrators • Deploy your code • Magic happens • Your application is live • Web applications • Now queue workers too
Platform as a service shootout Most PaaS providers support python,
php, ruby or node.js "natively" A few support Perl deployments. How magical is Perl support?
Test application: geotz Given a JSON encoded list of IP
addresses, return the UTC offset for each IP's timezone. Input: ["24.24.24.24"] Output: { "24.24.24.24" : { "country_name": "United States", "region_name": "New York", "city": "Buffalo", "time_zone": "America/New_York", "utc_offset": -14400 } }
Implementations Perl • Dancer • Mojolicious Python • Flask Erlang
• Webmachine
Perl Dependencies Dancer • Try::Tiny • Regexp::Common • DateTime • DateTime::TimeZone • JSON • Geo::IP <=
hard to automate
Perl Dependencies Mojolicious::Lite • Mojo::JSON • Try::Tiny • Regexp::Common • DateTime • DateTime::TimeZone • Geo::IP <=
hard to automate
Python Dependencies • Flask (and Werkzeug, Jinja2) • PyTZ (core python tz
support sucks) • pygeoip
Erlang Dependencies • webmachine • mochiweb • egeoip
Providers • Heroku • dotCloud • Stackato (my 45 day
trial ended) • OpenShift (Red Hat) • flexflux.com (closing) • Juju (Ubuntu)
Evaluation Criteria • Ease of deployment • Performance? • Cost?
• How "magical" Perl support is relative to other supported languages. (First class or hacked together?)
Evaluation Criteria • Ease of deployment • Performance? • Cost?
• How "magical" Perl support is relative to other supported languages. (First class or hacked together?)
Findings • Getting PSGI compliant Perl web apps (with sensible dependencies)
into PaaS environments is generally pain free. • But python is still less painful. • Erlang is a unicorn. (Some PaaS providers have alpha quality support.)
Resources https://github.com/mrallen1/perl-PaaS-Shootout https://speakerdeck.com/u/mrallen1/p/Perl- Platform-as-a-Service-Shootout Try the service: http://dancerperlpaas-mrallen1.dotcloud.com/ http://flaskperlpaas-mrallen1.dotcloud.com/ http://blazing-sky-3007.herokuapp.com
(mojo) curl -s -X POST -d'["24.24.24.24"]' URL | json_pp