CodePen Radio

#299: Meet CPHub


Listen Later

CPHub is just the name of an internal project ("CodePen Hub") that we've released in the last couple of weeks. You (as a user) won't notice a thing (except, perhaps, that some of our processors have been upgraded, like RubySass to DartSass). But for us, we notice, because not only does it do everything we hoped it would, it's had side effects that have all been positive.
This show is Alex and Chris chatting about all the technical in-and-outs of the project. Short story: we have a new internally-facing relative URL, which is responsible for the vast majority of anything that would otherwise go out to a third-party URL. So for example, all our code processing services in the past would have been routed to an AWS Gateway and then to an AWS Lambda orchestrator and then to an individual AWS Lambda and back. Now they go to CPHub, to the individual Lambda, and back. But it's not just AWS stuff, it's really any third party HTTP request.
Among other things, CPHub is:
Faster — a handful of Go-powered web servers that are literally faster, never break a sweat, and require less hopsLess expensive — we have to manage those servers, but they are simple and cheapAre not subject to CORS concerns — because the HTTP requests are to our own domain
The thing I'm most excited about though is the consolidation. Every service we have is consolidated into the CPHub area of our repo and we've improved the deployment story for all of it.
Episode Timestamps
01:14 Serverless functions on CodePen06:43 Advantages of CP Hub11:22 Sponsor: FeaturePeek14:17 Benefits of CP Hub continued19:16 Boom Boom25:02 Writing a node function32:15 A good idea all around34:36 Squashing bugs
Sponsor: FeaturePeek
Turn front-end deployment previews into your hub for continuous product review. FeaturePeek is the easiest way for web development teams to collaborate on frontend work.
Take and annotate screenshotsRecord session videoTag coworkers and leave comments
FeaturePeek works with all frameworks and hosting providers and integrates with Linear, Clubhouse, Trello, and more.
Get started today at featurepeek.com and use code FP2021 for 30% off upgrades to FeaturePeek for business teams.
...more
View all episodesView all episodes
Download on the App Store

CodePen RadioBy CodePen Blog

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

86 ratings


More shows like CodePen Radio

View all
Hanselminutes with Scott Hanselman by Scott Hanselman

Hanselminutes with Scott Hanselman

381 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

289 Listeners

Startups For the Rest of Us by Rob Walling

Startups For the Rest of Us

705 Listeners

ShopTalk by Chris Coyier & Dave Rupert

ShopTalk

500 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

625 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

288 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

988 Listeners

Abroad in Japan by Stak

Abroad in Japan

1,915 Listeners

Tech Brew Ride Home by Morning Brew

Tech Brew Ride Home

960 Listeners

Naval by Naval

Naval

2,122 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners

Hard Fork by The New York Times

Hard Fork

5,522 Listeners

PodRocket by LogRocket

PodRocket

59 Listeners

BG2Pod with Brad Gerstner and Bill Gurley by BG2Pod

BG2Pod with Brad Gerstner and Bill Gurley

474 Listeners

Risky Business with Nate Silver and Maria Konnikova by Pushkin Industries

Risky Business with Nate Silver and Maria Konnikova

293 Listeners