3 ms·
The only problem Java has is experienced C programmers don't build servers from scratch with it yet. Please explain. What kind of crazy jack write servers in C
by quadcore 4y ago
The only problem Java has is experienced C programmers don't build servers from scratch with it yet.
Please explain. What kind of crazy jack write servers in C? (Real question, trying to learn here)
- varjag 4y agoServers written in C is the status quo here in real world.
- cozzyd 4y agoThe developers of apache httpd, nginx, postgresql, redis, among many others?
- xxs 4y agoyou really dont need redis if you have java. I see zero reasons to offload my datastructures via TCP, instead of have them locally. If need be, replicated them.
- vasilakisfil 4y agoUsually you need redis to scale up horizontally, meaning with multiple servers/processes, and still keep consistency in your data. In general redis is a very useful tool that provides various features, even pub sub.
- quadcore 4y agoRedis has plenty of features your java program hasnt. Starting with reliability :)
- xxs 4y ago>=your= java program hasnt. Wonder why the jab; Personally I'd trust my own code more than redis'
- xmonkee 4y agoHow do you share data between machines without something like redis?
- xxs 4y agowell, trivially - really. Machines can communicate via TCP and UDP, pretty much the same way you communicate with a web server - but more efficiently (than http). There are tons of protocols/frameworks for replicated and distributed maps which are significantly more effective than redis, esp when hitting the local one. Writing one such yourself, is sort of, rite of passage. While redis is well understood and (relatively) easy to use - it's just a TCP offloaded map (and few other datastructures), all well implemented and with non-blocking IO but nothing groundbreaking. Heck, it's even single threaded by design - no vertical scaling, and no L3 cache communication.
- xmonkee 4y agoso you’re saying reimplementing redis is the alternative to redis?
- quadcore 4y agoI see, you guys mean servers not web servers. Makes sense now.