r/graphql • • Nov 23 '22

WTF Apollo Server!?!

Y'all really made pretty significant breaking changes with v4 and then decided to shove them down everyone's throat by immediately deprecating v3 with an EOL only one year after v4 was generally available??? I only started this project for my work in the summer I'm the only one working on this server and now I already have a couple days worth of technical debt to sort out through zero fault of my own.

In bird culture this is known as a dick move. A release that is scarcely a year old deserves more support.

7 Upvotes

29 comments sorted by

19

u/Unhappy-Basket-2556 Nov 23 '22 edited Nov 23 '22

I hope one day the entire GraphQL Community will see that Apollo doesn't give a crap about developers but only enterprise customers. They are not even fully Open Source. They are Elastic License 2.0.

They held a "GraphQL" Submit where basically ALL THE other companies who attended were deemed as competitors and anything to do with Open Source Software that was not Apollo was shot down with legality BS. Hopefully they change the name to "Apollo Submit" in the coming years.

We currently use Apollo and EVERY single check in from a AE has lead to them pitching the supergraph down our throats, so we can further be vendor locked into Apollo and they can continue to raise the price per year.

I understand your frustration, but you are not valuable to Apollo so they do not care about you. We're currently also looking for an Apollo alternative though we are not startup anymore.

5

u/skesisfunk Nov 23 '22

Thanks for the info, seriously!

6

u/davidglasser Nov 29 '22

I do want to clarify one point here — Apollo Server is an open source project, licensed under the MIT License, and at least speaking for myself I can't imagine this changing. Apollo does have some ELv2 projects (such as Router and Gateway v2) but Apollo Server is not one of them. (I'm not here to push back on how you feel about the rest of your interactions, and I know you didn't technically say Apollo Server is ELv2, but I just did want to clarify this particular detail.)

5

u/Unhappy-Basket-2556 Jul 03 '23

Happy to provide a update on this.

We've completely moved off of Apollo and moved onto WunderGraph. We're still using Apollo Federation, but have switched our hosting to WunderGraph and using their "graph solution".

We're currently waiting for Apollo Federation v2, but so far no complaints and our bill has decreased 50%.

14

u/[deleted] Nov 23 '22

One year seems fine, I'm not sure what you're expecting from a free open source project. Just migrate?

1

u/NestedLine133 Nov 23 '22

why don't we make breaking changes on tcp/ip every year too, since it's free software

-6

u/skesisfunk Nov 23 '22

~2 years of support is extremely short for a major version of open source software. Even NodeJS which is notorious for this supports their major versions for longer. A lot of free software, like ubuntu and debian, supports their major versions for 5 years. This is also turning out to be a relatively messy migration.

4

u/pottaargh Nov 23 '22

You are confusing support for Long Term Support. The support for non-LTS ubuntu is 9 months. Look at a project like Kubernetes - you get 1 year of support and no LTS at all.

1 year is perfectly normal. Committing to LTS means a project will move much slower. You’d probably still have the feature set of Apollo Server 2 now if they had to commit the resources to supporting things for 5 years

1

u/skesisfunk Nov 23 '22

Kubernetes doesn't release breaking changes every year (or ever? They are still on version 1) If the new apollo server version wasn't a breaking change I wouldn't have even made this post.

1

u/pottaargh Nov 23 '22

Kubernetes releases breaking changes in every release, of which there are usually around 3 per year. You’re confusing api versioning with support now.

1

u/skesisfunk Nov 23 '22

Thats just not true the only "breaking" changes K8s ever releases is removing parts of the API that have been marked as deprecated for at least one year. Phasing parts of an API out is different than depreciating an entire major version and forcing a migration. Apollo basically marked their entire API as deprecated (hence a major version bump), K8s has never done that.

If Apollo was following the release mode K8s does i never would have made this thread.

1

u/pottaargh Nov 23 '22

Removing deprecated parts is literally what I’m talking about. Again, api compatibility isn’t support. Support is bug fixes and security fixes. They are not the same thing. Your Apollo 3 isn’t going to stop working in 12 months.

2

u/Capaj moderator Nov 23 '22 edited Nov 24 '22

Migrate to mercurius. It's not hard. It may actually be easier than upgrading to V4. The only downside is that you won't have apollo studio anymore, but it's well worth having the extra performance and API stability. You can use other tools to tracing/ error reporting and metrics.

3

u/skesisfunk Nov 23 '22

I will for look in to this! Thanks!

1

u/jocke138 Nov 25 '22

Have you found an alternative to apollo studio?

2

u/mstoiber Nov 26 '22

We at Stellate offer GraphQL Metrics that are not quite as advanced, but give our users many similar insights as Apollo Studio does!

6

u/overdude Nov 23 '22

You are very upset about getting some free software!

-3

u/skesisfunk Nov 23 '22

I am upset that I have to drain hours on this migration, their api changes broke every single one of my unit tests and the fixes are non-trivial. I work at a start up and man hours are at an absolute premium.

I started this project less than 6 months ago on their latest available version and now it feels like I am basically being strong armed into migrating now. Even one more year of full support before deprecation would have given me breathing room to let this project mature and plan a migration. But since its already deprecated and I am still building it the technical debt is much more urgent. Its just a bad developer experience, they clearly disregarded people like me who may have started projects on v3 recently.

Sure its free software but, as you know, there is more to the open source game than that. There is benefit for them when companies adopt their software. I would be interested to know how they justify such and aggressive deprecation timeline. They literally deprecated the old versions right when the new one was released.

16

u/overdude Nov 23 '22

Don’t upgrade the version you are using. Nobody is forcing you to do anything.

Apollo doesn’t owe you shit until you start paying them.

Get rid of your sense of entitlement. This attitude is an absolute drag on the open source community.

-4

u/skesisfunk Nov 23 '22

I have no sense of entitlement. The "open source community" is a symbiotic relationship between open source project contributors and the people and orgs using their software. Since it seems like you are unaware: Apollo is a for profit startup raising money and their valuation is based, in part, on adoption of their software!

Get your head out of the sand. The kind of ignorance you are exhibiting here is the real drag on the community.

7

u/[deleted] Nov 23 '22

Not sure what you're doing on Reddit, it sounds like you should be busy with that migration.

15

u/davidglasser Nov 29 '22 edited Nov 29 '22

Hi folks. Apollo Server tech lead here.

Yes, we made a lot of breaking changes in Apollo Server v3 and v4. The migration guides are very long (though I hope they are helpful).

Why did we do this? Unfortunately, the previous design of Apollo Server was fundamentally unmaintainable. In addition to the actual unique core of Apollo Server-specific code, the previous version also had direct on-by-default dependencies and integrations with many of the most popular third-party GraphQL JS projects of 2018. This includes features like subscriptions, uploads, and GraphQL Playground, and web frameworks like Express, Fastify, Hapi, etc.

Unfortunately, many of the "feature" projects have gone unmaintained in the years since 2018, or have made backwards-incompatible changes that we were unable to adapt without it becoming a backwards-incompatible change to Apollo Server itself. And unfortunately, the mechanism that we used to connect to the web frameworks was not very well designed — it didn't allow you to connect it to your own web framework, it meant that we had to choose a single major version of each web framework that we supported (also for compatibility reasons), etc.

By 2021, Apollo Server was a mess of hard-coded integrations with unmaintained projects. We spent months over the past two years fixing security bugs in abandoned third-party projects just because they were plugged into Apollo Server by default — even when these were features we already didn't recommend to our users!

Apollo Server 4 takes a different approach. It's a much slimmer project with well-defined APIs to the outside world. If you want to use the third-party projects that were built in to Apollo Server 2 (like subscriptions and uploads) you are now encouraged to use the actual implementing packages directly, which allows you to take their upgrades on your own schedule rather than being forced to adapt to our schedule (or in practice, to never upgrade because we can't take the upgrade for compatibility reasons). We have a well-defined API for web integrations, which led within weeks of the v4.0.0 release to community support for frameworks like NextJS that never had an official integration before.

To a huge degree, the features we've cut from Apollo Server were features that were effectively unmaintained for years anyway. "Continue to maintain a project with the shape of Apollo Server 2" was not really an option. We've done our best to provide a clear (if perhaps, like this comment, verbose) migration guide to help people continue to use the functionality of Apollo Server 2, and we feel like we've moved the project to a point where it can be maintained and extended much more easily than the sprawling project we had a few years ago.

It's worth noting that the "deprecation" above is the de facto treatment we've been providing to Apollo Server 2 since July 2021 — we've only been providing security fixes there (including, as mentioned, several security fixes to third-party packages that were a major investment of time despite the fact that the software in question was already no longer part of the newest release of Apollo Server). The only change is that we've made it more explicit in `npm deprecate` metadata, and that we're setting a clear time frame for when we intend to stop providing those security releases (though of course we reserve the right to continue to provide extra support past that date if it seems like a good idea). We certainly don't plan to delete our open source code from the npm repository next fall and you're welcome to continue to use it indefinitely. It's just that in fall 2023, we will no longer 100% promise that our response to hearing a report of a security issue in a piece of code we didn't write and that hasn't been a dependency of Apollo Server since July 2021 will be to fix it. (Though we still might!)

(The creation of Apollo Server v3 and v4 was basically a single project — we just chose to release half of the breaking changes in 2021 and half of them this year rather than making one even more enormous release. For the most part, the changes we made in the two versions are to separate parts of the project — I can't think of anything in the v4 migration guide that is a change to something that we introduced for the first time in v3.)

I'm optimistic that this phase of rapid major changes to the project is done. My expectation is the next backwards-incompatible change is likely to be a release of Apollo Server v5 in the spring with (hopefully!) a migration guide limited to "make sure you're not using the out-of-LTS Node v14 any more, and maybe you have to upgrade your `graphql-js` version as well".

One advantage of having made the project much more maintainable is that we have been far more responsive on the GitHub repo than we were back when the project was so sprawling that in order to be an effective maintainer you had to understand Apollo Server's core code and graphql-js and graphql-tools and graphql-subscriptions and graphql-upload and graphql-playground and Express and Fastify and Hapi and Koa and Micro and Lambda and Google Cloud Functions and Azure Functions and Cloudflare in order to make all sorts of seemingly minor changes. If you're having challenges upgrading that improvements to the current software or to our migration guide would help, we'd love to hear about it!

And of course, if your response here is to consider switching to other Node/JS/TS server implementations like Mercurius — that's a perfectly valid choice too! To be honest, both servers are largely a glue layer around the real brains in graphql-js. We think the unique features of Apollo Server (our plugin system, integrations with Apollo Studio, caching, security features like CSRF prevention, automatic persisted queries, etc) are compelling additions to graphql-js, but it's exciting to be part of a vibrant open source ecosystem where many projects can interoperate happily.

1

u/AmountSimple Jan 04 '23

Hi, i migrated to v4 some days ago. And i noticed that in the connection settings of the new Apollo studio, the check box to include cookies was missing. I use cookies for authentication, and since there was no "include cookies" option, the cookies were not set in the browser.

I included these in my response headers:

Access-Control-Allow-Origin: https://studio.apollographql.com
Access-Control-Allow-Credentials: true

and confirmed it was attached to the response.

Is there a different way to include cookies for Apollo Studio in v4? Hopefully i can get a solution to this ASAP

1

u/davidglasser Jan 04 '23

Can you file this as an issue on the apollo-server repository?

1

u/AmountSimple Jan 04 '23

Sigh, i had hoped i was missing something. I will file it as an issue

2

u/scruffles360 Nov 23 '22

Every year Apollo releases a breaking change for either the client or the server. There’s a lot of talk here that no one is entitled to anything, it’s free, etc. but this costs my company a lot of money. I would gladly pay for a stable product. We will have to move to something simpler and more stable soon - maybe instead of this upgrade. We have too many projects to upgrade to stay in this train.

It’s not up to the people at Apollo to fix this of course… just a hard decision I thought was worth sharing.

0

u/skesisfunk Nov 23 '22

Yeah this. I'm not just working on a personal side project here, I am getting paid to do this and this migration is slowing me down. This is our companies first graphql project, but we have plans to do a whole lot more. This kind of thing gives me pause about using Apollo for those future projects. If they do this to v4 next year I am for sure going to look at other options.

4

u/brondizzle Nov 23 '22

look at fastify with mecurius. i was able to mimic injecting the datasources into the context so the resolvers didn’t require any refactoring. you’ll also be able to take advantage of mercurius’s loaders going forward

1

u/smyrick Aug 16 '23

The Apollo team has extended support for Apollo Server v3 until Oct 2024

https://www.apollographql.com/blog/announcement/backend/apollo-server-3-end-of-life-extension/