• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:04
CET 17:04
KST 01:04
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners8Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!33$5,000+ WardiTV 2025 Championship6[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! 5.0.15 Patch Balance Hotfix (2025-10-8) Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
$5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BW General Discussion [ASL20] Ask the mapmakers — Drop your questions [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[Megathread] Daily Proleagues [ASL20] Grand Finals [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1696 users

The Big Programming Thread - Page 757

Forum Index > General Forum
Post a Reply
Prev 1 755 756 757 758 759 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Hhanh00
Profile Joined May 2016
34 Posts
August 26 2016 14:59 GMT
#15121
https://www.quora.com/What-are-the-biggest-websites-built-with-Node-js-on-the-server-side


- Walmart (Why Walmart is using Node.js )
- E-bay / PayPal ( Node.js at PayPal)
- Microsoft (Node.js Dev Center | Windows Azure) They have extensive support, in fact their Azure CLI tools are actually written in Node.js.
- LinkedIn (Exclusive: How LinkedIn used Node.js and HTML5 to build a better, faster app)
- Yahoo
- Google (Node at scale: What Google, Mozilla, & Yahoo are doing with Node.js)
- Yammer (now part of Microsoft) (Managing Node.js Dependencies and Deployments at Yammer - Yammer Engineering)
- Netflix has a series of blog posts on its use (Search results for node.js)(Updated 2016-02)
- Looks like Uber is using it as well (Updated 2016-03)

phar
Profile Joined August 2011
United States1080 Posts
August 26 2016 16:01 GMT
#15122
Just to point out, many of your links do not actually describe large scale websites built with node (e.g. the Google sub article).
Who after all is today speaking about the destruction of the Armenians?
tofucake
Profile Blog Joined October 2009
Hyrule19151 Posts
August 26 2016 17:05 GMT
#15123
On August 26 2016 23:59 Hhanh00 wrote:
https://www.quora.com/What-are-the-biggest-websites-built-with-Node-js-on-the-server-side

Show nested quote +

- Walmart (Why Walmart is using Node.js )
- E-bay / PayPal ( Node.js at PayPal)
- Microsoft (Node.js Dev Center | Windows Azure) They have extensive support, in fact their Azure CLI tools are actually written in Node.js.
- LinkedIn (Exclusive: How LinkedIn used Node.js and HTML5 to build a better, faster app)
- Yahoo
- Google (Node at scale: What Google, Mozilla, & Yahoo are doing with Node.js)
- Yammer (now part of Microsoft) (Managing Node.js Dependencies and Deployments at Yammer - Yammer Engineering)
- Netflix has a series of blog posts on its use (Search results for node.js)(Updated 2016-02)
- Looks like Uber is using it as well (Updated 2016-03)


Yeah, plenty of companies use Node for some things, but most of them are driven by PHP (likely C# in Microsoft's case), C, and Go. None of those sites are majority node. Like the Azure CLI: only the tools are written in Node.
Liquipediaasante sana squash banana
phar
Profile Joined August 2011
United States1080 Posts
August 26 2016 19:10 GMT
#15124
And Java

So much Java

:/


Though also worth pointing out that most places don't need the same kind of scale as ms Google whatever.
Who after all is today speaking about the destruction of the Armenians?
TheEmulator
Profile Blog Joined July 2010
28092 Posts
August 26 2016 20:31 GMT
#15125
On August 26 2016 21:37 tofucake wrote:
Show nested quote +
On August 26 2016 14:31 Wrath wrote:
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded

If you're looking to do some standard website, node is a crap choice. Something like TL would go down in flames if it were made in node, nevermind any big site. Nobody will create the next Facebook/Google/Etsy/Ebay/PayPal/Expedia/Whatever until node gets multithreading.

Unfortunately TL's backend is based on your least favorite language (unless it was someone else that hated PHP).
Administrator
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2016-08-26 21:51:20
August 26 2016 21:48 GMT
#15126
Yea but TL is a tiny website that is very unlikely to need to scale beyond the capabilities of PHP. And that's fine. Most websites don't need scale beyond what MySQL PHP perl node whatever can handle.

Right like I just did an interview today where the candidate and I settled on an approximate db size of 100 billion entries, and it was actually ok to do with fairly simple tech. There's nothing wrong with that.
Who after all is today speaking about the destruction of the Armenians?
phar
Profile Joined August 2011
United States1080 Posts
August 26 2016 21:56 GMT
#15127
In fact I would say more common is that something does get built in poorly scaling tech, then gets big. And then people scramble to scale (either by hacking on the tech, porting, or what have you).

Designing from the outset wih the expectation of having hundreds of millions of users and petabytes of data to crunch is the exception, not the rule.
Who after all is today speaking about the destruction of the Armenians?
Hhanh00
Profile Joined May 2016
34 Posts
August 27 2016 01:00 GMT
#15128
TL would go in flames if based on node.js, but it's ok for Linked in to use node.js for their mobile backend.

If you're looking to do some standard website, node is a crap choice. Something like TL would go down in flames if it were made in node, nevermind any big site.


“On the server side, our entire mobile software stack is completely built in Node,” said Prasad. “We use a ton of technologies at LinkedIn, but for the mobile server piece, it’s entirely Node-based.

Wrath
Profile Blog Joined July 2014
3174 Posts
August 27 2016 05:47 GMT
#15129
Yea but TL is a tiny website that is very unlikely to need to scale beyond the capabilities of PHP. And that's fine. Most websites don't need scale beyond what MySQL PHP perl node whatever can handle.


What do you mean "Scale beyond the capabilities of PHP"? Facebook is built on PHP, isn't that strong enough?
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2016-08-27 08:01:42
August 27 2016 07:57 GMT
#15130
--- Nuked ---
phar
Profile Joined August 2011
United States1080 Posts
August 27 2016 08:04 GMT
#15131
Also Facebook PHP is quite different. See hiphop for example.
Who after all is today speaking about the destruction of the Armenians?
Wrath
Profile Blog Joined July 2014
3174 Posts
Last Edited: 2016-08-27 09:24:57
August 27 2016 09:24 GMT
#15132
OK, if PHP is too limited for huge websites, what tools should they use?

Also, could you please give example on how PHP is limited?
Hhanh00
Profile Joined May 2016
34 Posts
August 27 2016 10:59 GMT
#15133
NodeJS isn't very fast by itself but big companies can offset its low performance by throwing hardware and money at it. For PHP, since it's a language, the result depends on the implementation and the web server that hosts the application.

Here are some raw benchmark numbers for the interested:
https://www.techempower.com/benchmarks/#section=data-r11&hw=peak&test=plaintext

NodeJS low performance can be explained by libuv using a single threaded event loop over I/O abstractions that don't match the underlying systems well resulting in needless memory allocations and context switches. Faster frameworks use native system calls like epoll/kqueue/iocp and/or aio. Some frameworks end up delivering data from disk faster than nodeJS can deliver from memory.
tofucake
Profile Blog Joined October 2009
Hyrule19151 Posts
August 27 2016 13:47 GMT
#15134
On August 27 2016 05:31 TheEmulator wrote:
Show nested quote +
On August 26 2016 21:37 tofucake wrote:
On August 26 2016 14:31 Wrath wrote:
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded

If you're looking to do some standard website, node is a crap choice. Something like TL would go down in flames if it were made in node, nevermind any big site. Nobody will create the next Facebook/Google/Etsy/Ebay/PayPal/Expedia/Whatever until node gets multithreading.

Unfortunately TL's backend is based on your least favorite language (unless it was someone else that hated PHP).

I actually like PHP, especially 7
Liquipediaasante sana squash banana
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
August 29 2016 07:12 GMT
#15135
On August 27 2016 18:24 Wrath wrote:
OK, if PHP is too limited for huge websites, what tools should they use?

Also, could you please give example on how PHP is limited?


When it comes to real giants I guess that everything is limited in the end. We're talking about websites that expose thousands of APIs, have user base in the millions etc. When it comes to such monsters it's highly unlikely they'll be limited to a single technology stack.

For example, with data they're most likely using CouchDB for documents, Neo4j for graph data, Redis or BerkeleyDB as primary cache and MySQL/PGSQL/Oracle/whatever as their big data store, with only maybe 10% queries actually hitting it. Then you'll have multiple backends for various parts (Facebook has PHP running on HHVM, some Scala, Node and probably other things thrown into the mix). Then you have front-end tech like Angular or React added as another layer on top of that. To further leverage this complex architecture you have some form of ESB sprinkled into the mix. Then you start to think how it's spread over a gazillion servers with reverse proxies, DB replication etc. and you realize that it's one huge clusterfuck of a mess.

Nowadays you don't limit yourself to a single tech. You pick the tool that best suits your needs for specific parts and then build everything as SOA so you can pretend it's one huge app.
Time is precious. Waste it wisely.
Wrath
Profile Blog Joined July 2014
3174 Posts
August 29 2016 07:18 GMT
#15136
On August 29 2016 16:12 Manit0u wrote:
Show nested quote +
On August 27 2016 18:24 Wrath wrote:
OK, if PHP is too limited for huge websites, what tools should they use?

Also, could you please give example on how PHP is limited?


When it comes to real giants I guess that everything is limited in the end. We're talking about websites that expose thousands of APIs, have user base in the millions etc. When it comes to such monsters it's highly unlikely they'll be limited to a single technology stack.

For example, with data they're most likely using CouchDB for documents, Neo4j for graph data, Redis or BerkeleyDB as primary cache and MySQL/PGSQL/Oracle/whatever as their big data store, with only maybe 10% queries actually hitting it. Then you'll have multiple backends for various parts (Facebook has PHP running on HHVM, some Scala, Node and probably other things thrown into the mix). Then you have front-end tech like Angular or React added as another layer on top of that. To further leverage this complex architecture you have some form of ESB sprinkled into the mix. Then you start to think how it's spread over a gazillion servers with reverse proxies, DB replication etc. and you realize that it's one huge clusterfuck of a mess.

Nowadays you don't limit yourself to a single tech. You pick the tool that best suits your needs for specific parts and then build everything as SOA so you can pretend it's one huge app.


Thanks for the explanation. I decided I'd go with Java for now. I should remember it mostly in a week and then I'll practice on Spring and maybe struts.

I rethought the whole thing and I found that my problem is not that I don't know the language at all. Basically they all have the same syntax with minor differences. But I have 0 knowledge about used frameworks. The shit that really really matters.

Later I may check RoR or PHP my cake.
njt7
Profile Joined August 2012
Sweden769 Posts
August 29 2016 11:20 GMT
#15137
On August 26 2016 21:37 tofucake wrote:
Show nested quote +
On August 26 2016 14:31 Wrath wrote:
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded

If you're looking to do some standard website, node is a crap choice. Something like TL would go down in flames if it were made in node, nevermind any big site. Nobody will create the next Facebook/Google/Etsy/Ebay/PayPal/Expedia/Whatever until node gets multithreading.


Why would node go down in flames if it ran TL.net? My realworld test gave me about 20 requests/ second on a amazon micro instance. If you really need more just add more instances behind a load balancer. (might have been 50 requests/ second but honestly 20 is enough to prove my point isnt it?).
"All the casters who flamed me ever for anything."
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
August 29 2016 13:01 GMT
#15138
On August 29 2016 20:20 njt7 wrote:
Show nested quote +
On August 26 2016 21:37 tofucake wrote:
On August 26 2016 14:31 Wrath wrote:
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded

If you're looking to do some standard website, node is a crap choice. Something like TL would go down in flames if it were made in node, nevermind any big site. Nobody will create the next Facebook/Google/Etsy/Ebay/PayPal/Expedia/Whatever until node gets multithreading.


Why would node go down in flames if it ran TL.net? My realworld test gave me about 20 requests/ second on a amazon micro instance. If you really need more just add more instances behind a load balancer. (might have been 50 requests/ second but honestly 20 is enough to prove my point isnt it?).


I think that the biggest problem with single-threaded apps is consistency. If each request runs in a separate thread then you can expect the same request to take the same amount of time, not so much with queueing since you don't really control what's being executed when.

Another downside of single-threading is that if some process will crash your app it's going to crash it for everyone, not just a single instance.
Time is precious. Waste it wisely.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2016-08-29 14:16:39
August 29 2016 14:15 GMT
#15139
Hey guys, I have a problem again.

I asked it here

So I'm building a data hub. Basically I want to store large amounts of data in a database.

In order to do that there are these pipes of data that my data providers have to make using my APIs.

I want to secure the APIs so I know who's making the streams and I can limit who makes them. As well as who can send to them. Does it make sense to do OAuth for the non-ingestion API methods and use an API key for the ingestion methods?

OAuth tokens tend to expire and ingestion of data is a long running process.

OAuth + API keys doesn't feel like the right solution since then there's 2 separate security protocols being used.

The other option I see right now is to force users to check the expiration time of their tokens and then try to refresh them if it's about to expire and they still need to send data.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
mantequilla
Profile Blog Joined June 2012
Turkey779 Posts
Last Edited: 2016-08-29 14:21:09
August 29 2016 14:18 GMT
#15140
guys sorry to interrupt your debate about app server threads, but im gonna ask a newb cloud question:

As I see Azure has a way to programmatically control cloud resources/deployments (https://github.com/Azure/azure-sdk-for-java), I'm assuming other cloud providers would have too. Right now have a software that we deploy to cloud by hand (uploading by ftp). We want to sell this web app to numerous small-budget customers.

Do you think such a workflow possible/appropriate/viable:

We build a website that customers can buy our software through. After payment, using the cloud API's above, an instance of our app is deployed to cloud (creating required services like databases etc) and customer is given a domain name to access his product. All of this is done without any handwork.
Age of Mythology forever!
Prev 1 755 756 757 758 759 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 56m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 572
BRAT_OK 90
Codebar 41
Livibee 31
StarCraft: Brood War
Jaedong 1495
GuemChi 1465
EffOrt 1325
Stork 698
Light 607
Larva 417
Snow 411
Mini 356
Rush 223
Barracks 222
[ Show more ]
Leta 119
hero 112
sSak 111
JYJ47
Aegong 37
Backho 34
sorry 29
zelot 26
soO 23
Terrorterran 16
HiyA 15
scan(afreeca) 12
Bale 9
Dota 2
qojqva3422
420jenkins258
syndereN218
Other Games
singsing2199
Sick375
DeMusliM352
crisheroes342
Lowko284
Hui .257
Liquid`VortiX150
oskar109
KnowMe96
XcaliburYe58
QueenE29
Trikslyr17
Organizations
Counter-Strike
PGL201
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2491
• WagamamaTV466
League of Legends
• Nemesis4280
• Jankos3067
• TFBlade809
Upcoming Events
LAN Event
1h 56m
Lambo vs Harstem
FuturE vs Maplez
Scarlett vs FoxeR
Gerald vs Mixu
Zoun vs TBD
Clem vs TBD
ByuN vs TBD
TriGGeR vs TBD
Korean StarCraft League
10h 56m
CranKy Ducklings
17h 56m
IPSL
1d 1h
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
1d 1h
BSL 21
1d 3h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 6h
Sparkling Tuna Cup
1d 17h
WardiTV Korean Royale
1d 19h
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
[ Show More ]
LAN Event
2 days
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
2 days
Wardi Open
2 days
WardiTV Korean Royale
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
5 days
RSL Revival
5 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.