Live data from Hacker News

Surge – Static Web Publishing for Front-End Developers

surge.sh

41–50 of 80 posts

Re: Surge – Static Web Publishing for Front-End Developers

#41

I don't work directly with Surge but the other developers where I'm at have found Surge to have too much downtime and we're moving off of it now. Maybe in the future they will have a more reliable service, but right now you'll definitely experience the growing pains of a new tool.

Hi, Brock here from surge.

We are having growing pains no question. We have learned lots about our system recently due to some of these incidences. Changes are underway to make the system more fault tolerant and resilient to attacks.

Give us time to make things better and please keep us on your radar.

Re: Surge – Static Web Publishing for Front-End Developers

#42

I don't work directly with Surge but the other developers where I'm at have found Surge to have too much downtime and we're moving off of it now. Maybe in the future they will have a more reliable service, but right now you'll definitely experience the growing pains of a new tool.

Was the downtime with the static website itself or the deployment tools?

Re: Surge – Static Web Publishing for Front-End Developers

#43
post #5

Very nice service and interface. Only issue I've had was when my site went down a couple of times due to issues at DigitalOcean.

Brock from surge here. I would just like to clarify causes of our downtime because we like DigitalOcean very much and dont want people to have the wrong idea.

In the 1 year we have been available we have had 3 incidences each for different reasons.

The first was DigitalOcean taking us offline for not complying with a DMCA takedown request. This was before Digital Ocean knew who we were and they expected foul play. From this incident DO reviewed their policies on removing network access to customers and show genuine remorse for the downtime. Like I say we have been very happy with DO and would definitely recommend them.

The second downtime was due to user error on a bad deploy and the system unraveled in a sense. This was a result of several poor things that made the system more brittle than it should be. Somewhat significant architecture changes have happened as a result and more are underway.

Last, and most recently was two DDoS attacks on our floating IPs within days apart. Learning lots still about how to best protect our customers from this. System changes and mitigation plans are being put in place to protect our customers from these sorts of attacks in the future.

Re: Surge – Static Web Publishing for Front-End Developers

#44
post #40

grumble: they mention git hooks (and if you click on the description they are RCS agnostic) but they use the octocat logo. Just yesterday I mentioned that I was using git and my gf assumed I meant github. She (not a developer) thought that git was a product sold by github.

The octocat is in reference to the example app but I can see the confusion.

Re: Surge – Static Web Publishing for Front-End Developers

#45

One of the testimonials: "From now on, I think I'm going to strive to build all my apps as fully static sites." What? I can understand the idea of not overcomplicating an app when you don't need to, but how does this goal make sense for anyone who wants to build anything non-trivial?

Static generally means the assets and code are created and cached at deploy time, without any changes or code generation after deploy. Static sites use the same base code for every user, and interact with APIs to customize the experience. Loading new context-specific code, even if cached along the way, is not generally considered static.

This is part 1 of "the dream", the next step is being completely serverless - that is, not managing your own servers and using hosted services instead. The challenge there is mainly authentication and the security model, but with something like firebase with it's clever security model (or another similar authentication-only service who's name escapes me) you can basically build an app of almost any complexity.

CDN > Auth Service > Message Queue > Lamda-type processing > Hosted DB

Re: Surge – Static Web Publishing for Front-End Developers

#46

I mean, if you're doing a static site you can also use github pages with a simple push command. Is there some difference between surge and doing this that I'm not seeing?

I used to use GitHub Pages, but you can't have a custom domain that has SSL, so I switched to Surge like six months ago, and it works great. To be honest, though, if GitHub adds custom domains with SSL to pages, I'll probably switch back.

Re: Surge – Static Web Publishing for Front-End Developers

#47

One of the testimonials: "From now on, I think I'm going to strive to build all my apps as fully static sites." What? I can understand the idea of not overcomplicating an app when you don't need to, but how does this goal make sense for anyone who wants to build anything non-trivial?

No one is suggesting compiling a giant project like wikipedia into a static site and deploying to surge. its about the web client being a static front-end that can be cached and run offline.

Re: Surge – Static Web Publishing for Front-End Developers

#48
post #46

I mean, if you're doing a static site you can also use github pages with a simple push command. Is there some difference between surge and doing this that I'm not seeing?

I used to use GitHub Pages, but you can't have a custom domain that has SSL, so I switched to Surge like six months ago, and it works great. To be honest, though, if GitHub adds custom domains with SSL to pages, I'll probably switch back.

`(ノಥ,_」ಥ)ノ彡┻━┻`

Re: Surge – Static Web Publishing for Front-End Developers

#49
post #33

Earlier quoted context omitted.

Done this many times, in fact currently I deploy to S3 (look for "static website") and the static site interacts with an API. This is the whole point of JavaScript frameworks to me. And definitely not trivial stuff.

I understand the architecture you are describing, and I don't think that it is trivial. My confusion is over what really constitutes a "fully static" app.

IMO, static doesn't have to have a correlation to being simpler.

HTML, CSS, JS, and media are all static assets but you're welcome to request whatever datatypes you want behind the scenes via AJAX and/or CORs.

The benefits are entirely in the rendering speeds of an optimized web server and cache layer. Also, this approach plays extremely nicely with CDNs.

Difficulties can arise if you have to begin dealing with versioning of your assets to avoid cache invalidation, but that's what a proper build process can add to the static site.

Re: Surge – Static Web Publishing for Front-End Developers

#50
post #33

Earlier quoted context omitted.

Done this many times, in fact currently I deploy to S3 (look for "static website") and the static site interacts with an API. This is the whole point of JavaScript frameworks to me. And definitely not trivial stuff.

I understand the architecture you are describing, and I don't think that it is trivial. My confusion is over what really constitutes a "fully static" app.

In this particular case, my understanding is, the fully static code is just the frontend, in other words to not render HTML from your Web Server to the Browsers.
Post reply on HN