543 karma · joined Dec 27, 2018 (7y ago) · 122 submissions
@_eandre on Twitter
62.
Go Modules Cheat Sheet(encore.dev ↗)
3 points · by eandre · 5y ago · 1 comment
comment 5y ago · link · parent
comment 5y ago · link · parent
- Automatically sets up dedicated Preview Environments for your Pull Requests
- Provisions all the infrastructure you need, both for local development as well as in production (and other environments like staging or testing)
- Provides auto-completion and compile-time type safety for making cross-service API calls, with a single line of code
- Integrates secrets management, API documentation, frontend client generation, etc :)
comment 5y ago · link · parent
As for being tied to us, that's a big part of why we're open sourcing it. We see that Encore can rather reduce lock-in, as the code you end up writing with Encore is very cloud-agnostic, but also quite agnostic of Encore itself (by virtue of using static analysis, you end up writing mostly regular business logic).
And when you use it you can deploy the applications to your own account at any major cloud provider, so you can use your existing trust relationships with your cloud provider of choice.
As for the name, it's a bit of a wordplay :). "en-" for "to bring about [something]", and "core" for "the part of something that is central to its existence or character" (in our case backend development).
comment 5y ago · link · parent
We're also working on expanding the set of infrastructure primitives supported, so that you get the Encore experience for doing more types of things. Things like Pub/Sub and message queues are the next things we'd like to add support for.
comment 5y ago · link · parent
As for platform vs framework, my realization is that the traditional separation of frameworks/libraries from infrastructure means that it's almost impossible to improve many parts of the developer experience.
The annoying parts of building backends and distributed systems come from the integration between the two. Setting up databases, secrets, and so on all require bridging that gap. Another big area that we're investing in is providing insights about how your application works at runtime, in production, directly at your fingertips when you're writing code. That's also not something you can do without integrating across that gap.
As you pointed out in the edit, you can absolutely use Encore with your own cloud. We're working on making the deployment options much more flexible, but it's very much not another "let's make an infrastructure tool and then charge a premium on top of your cloud bill to manage it for you".
Our business model is much more about aligning the incentives with the developers. We want to provide the best developer experience out there, and by charging for that as opposed to for infrastructure, we'll happily invest time to reduce our users' and customers' cloud bills, rather than just selling them more servers they don't really need.
comment 5y ago · link · parent
[1] https://github.com/encoredev/examples/tree/main/websocket-ec...
comment 5y ago · link · parent
It's not another infrastructure offering but rather a new developer experience for building backend applications and distributed systems. The idea is to get the developer feedback loop to be about building your product and writing business logic.
Encore then uses static analysis to understand what your application does, the different backend services involved, and the infrastructure you need. It can then provision all the infrastructure, servers, databases, and hook everything together.
comment 5y ago · link · parent
Off the top of my head: a lot of stuff from Google (Dapper, Stubby, Zanzibar). Dynamo from Amazon. Leslie Lamport's guide on TLA+. The two generals problem, distributed consensus, and so on.
Most distributed systems don't need all that fancy stuff, but it's useful to know regardless. Even the simplest systems will get weird and interesting bottlenecks with scale.
And then a lot of just doing it in practice! Find a job at a startup with some scale, and learn on the job.
comment 5y ago · link · parent
I was at Spotify for the past 8 years as a Staff Software Engineer. We grew frustrated with the disproportionally large effort needed to build even simple backend applications, and created Encore to solve this problem.
Encore uses static analysis and code generation to reduce the boilerplate you have to write, resulting in an extremely productive developer experience. It's a combination of a framework that combines with a cloud platform in order to simplify all aspects of building distributed systems, from how you write code to shipping it to production.
I shared some more background on Encore here [1]. Feedback very much appreciated :)
75.
Show HN: Encore – Go framework for building distributed systems(github.com ↗)
182 points · by eandre · 5y ago · 69 comments
comment 5y ago · link · parent
We use that analysis to do a bunch of stuff:
- Automatically provision cloud infrastructure
- Generate API Documentation and type-safe clients to easily call your API from a frontend
- Automatically instrument your application with Distributed Tracing
- And lots more planned :)
comment 5y ago · link · parent
Encore offers a different approach to backend development, heavily based on static analysis and code generation to simplify and improve the developer experience.
Among other things, it automatically instruments your app and adds Distributed Tracing, generates high-quality and interactive API Documentation, and lots more.
Would love your feedback :)
79.
Show HN: Encore – Go backend framework with superpowers(github.com ↗)
11 points · by eandre · 5y ago · 5 comments
comment 5y ago · link · parent
I haven't read the book, but learning more about TLS is easily one of the best time investments I've made.
comment 5y ago · link · parent
I've been working on a new type of framework that is about making how we develop software match this mental model. Where the higher-level primitives we think in terms of are first-class citizens at the language level.
I think only then is it possible to reason about, and scale, software in a much more productive and effective way.
comment 5y ago · link · parent
It seems to me that even when you outsource your infrastructure to a major cloud provider, you're still spending a lot of time yourself setting everything up.
I'm certainly not criticising Anthony here – what he's done, especially in terms of product development, is remarkable – but just thinking about the industry at large.
comment 5y ago · link · parent
I also hope we don't need to know all this stuff in the future. It's pretty really low-level and it's much better if we can focus more on creating differentiation and building your actual product. (Full disclosure: I've founded a startup that's trying to do exactly that, so I guess I'm biased!)
comment 5y ago · link · parent