Ask HN: If you were to build a new webapp today, how would you pick your techs?
Assuming the client side is done already. I'm now pondering what technology to use for the backend.
I'm technology agnostic and would love to kill two birds in one stone with this project: make it work and learn something new. For the "make it work" part I can do it quickly with my legacy skills since I already have significant experience with those in production systems (mostly java-based), but I'm not sure I'm going to learn much here from a technical point of view and part of me would love to add a new technical line to the resume.
How would you go about it? Would you try something new to you, something new to the "scene"? Any tech in particular? (passion) Or would you get it done first (reason), deferring the learning part to the challenges at scale later down the way, which may or may not happen at all?
Bonus: how often do you ask yourself this very question?
10 comments
[ 6.3 ms ] story [ 49.3 ms ] threadBenefits that I can see:
* Purity. You can test the hell out of this with no side effects.
* Transaction log built in.
* The ability to look back in time, by only applying the events up until the point you're interested in and disregarding the rest.
* Very flexible and scalable.
* You can retrospectively answer questions that you might not have known how to ask, by creating new operations over your states.
* Plays well with monitoring, and analysis. E.g. just stream all of your events into logstash and elastic search.
It's an interesting take nonetheless, I've been toying with the concept of data/documents as the integration of event streams (commits, status updates etc) for a few years but never really thought to use the concept "from the ground up". The idea to me never really had any technical justification, mostly end user ones. Collaborative editing (Google Wave), action replays and time machine visualization (Starcraft, Gource), status update and event analytics dashboards (google analytics or the twitter firehose)...
It's a bit outside of the scope of my webapp for the time being but I'm glad there are people who think there is value in that approach!
I haven't quite figured out to what extent OT is the same as event sourcing. I guess OT is event sourcing with the additional concept of translating events over the top of other events (i.e rebase).
[1] http://martinfowler.com/eaaDev/EventSourcing.html
OT is operational transform; the set of algorithms behind google wave/docs. A modern take is http://sharejs.org/
> Switch to using Zend Engine 2, which includes numerous engine level improvements.
Does anyone have an executive summary of how Php evolved since the 4.3 days? Where there any fundamental changes anyone should be aware of?
http://php.net/manual/en/language.oop5.php
http://laravel.com/
But remember, one of the benefits of using event-based design is that you can write your event processors in different languages if it makes sense. Don't block off that possibility; in other words look at how you can use messaging technologies like ZeroMQ and AMQP rather than something like JMS which locks you in.