Better HN
topnewbestaskshowjobs
Log inSign up

edgurgel

69 karma · joined Jan 3, 2013 (13y ago) · 15 submissions

https://github.com/edgurgel
Submissions

comment 2y ago · link · parent

Interesting... I had the exact opposite impression. The codebase is big but very easy to understand and their SPIs[1] enable to customise Keycloak's behaviour quite easily.

For the statefulness using terraform[2] solves the problem for me.

[1] - https://www.keycloak.org/docs/latest/server_development/#_pr... [2] - https://github.com/mrparkers/terraform-provider-keycloak

2.

Google Joins seL4 Foundation(github.com ↗)

3 points · by edgurgel · 4y ago · discuss

comment 10y ago · link · parent

Virding's First Rule of Programming

"Any sufficiently complicated concurrent program in another language contains an ad hoc informally-specified bug-ridden slow implementation of half of Erlang."

http://rvirding.blogspot.co.nz/2008/01/virdings-first-rule-o...

comment 10y ago · link · parent

Here's a detailed explanation: https://github.com/edgurgel/verk/issues/2

comment 10y ago · link · parent

That's a great question. I chose Redis for 2 reasons:

* Simple to use

* Compatibility with other systems like Sidekiq/Resque. Out of the box it will understand their clients.

My experience with Mnesia is close to none but I know it's not trivial to deal with split brain scenarios for example. It's also complicated to connect multiple nodes for my use case (using docker) and also to deal with moving instances inside a cluster. I would need to care about the locality of the data.

One can use any Redis service (AWS Elasticache, Redis Labs) and not care about maintaining a database. The Verk user just needs to have a working Redis database.

I'm pretty sure that having the database in the same space as the job processing system would speed up things. I would love to see a project that tried this approach. Probably not using JSON but simply Erlang terms.

comment 10y ago · link · parent

OTP won't out of the box persist jobs that you want to guarantee that it will run. It won't also retry and it can't schedule jobs to happen in the future.

Unless you are willing to lose the jobs that are just in memory you can simply use Task and send messages.

RabbitMQ also does not handle retries with backoff, scheduled jobs, etc.

Disclaimer: maintainer here.

Edit: I added the "with backoff" to not mix with automatic reenqueue if you reject a message from a Rabbitmq consumer.

comment 10y ago · link · parent

APNS2 has a simpler interface and doesn't do things like generate website packages etc. APNS2 has better test coverage, and handles errors in a more go-like way. (Returns a response if a documented response was received from Apple, or an error where an unexpected error occurs.)

We are running this in production at http://carnival.io to send millions of notifications, to my knowledge buford has not been tested in production yet.

8.

The developer's dilemma(lnz.me ↗)

6 points · by edgurgel · 11y ago · discuss

9.

Erlang microservice architecture?(erlang.org ↗)

2 points · by edgurgel · 11y ago · discuss

comment 12y ago · link · parent

He will be here: http://www.erlang-factory.com/sfbay2015 . Hopefully he will share his thoughts.

comment 12y ago · link · parent

I like this blog post (http://blog.erlware.org/some-thoughts-on-go-and-erlang/) as it talks about some of the differences about them. For some of these reasons I don't think they solve the same issues and one won't eat the other.

comment 12y ago · link · parent

A Pusher server clone: https://github.com/edgurgel/poxa

comment 12y ago · link · parent

*ExUnit http://elixir-lang.org/docs/stable/ex_unit/

comment 12y ago · link · parent

Yeah they "endorse" if you consider they published a link to Poxa here: http://blog.pusher.com/pusher-community-libraries-highlights...

Thanks for pointing out Fanout. Looks like a nice product/project.

15.

Poxa: A Pusher clone with a real-time Console(github.com ↗)

43 points · by edgurgel · 12y ago · 7 comments