• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:58
CET 10:58
KST 18:58
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3ComeBackTV's documentary on Byun's Career !10Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2
StarCraft 2
General
What's the best tug of war? The Grack before Christmas Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies ComeBackTV's documentary on Byun's Career ! Micro Lags When Playing SC2?
Tourneys
$5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow Sparkling Tuna Cup - Weekly Open Tournament Winter Warp Gate Amateur Showdown #1 RSL Offline Finals Info - Dec 13 and 14!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Recommended FPV games (post-KeSPA) BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle soO on: FanTaSy's Potential Return to StarCraft
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] LB QuarterFinals - Sunday 21:00 CET [BSL21] WB SEMIFINALS - Saturday 21:00 CET
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Current Meta Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Beyond All Reason Path of Exile 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
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread How Does UI/UX Design Influence User Trust? Things Aren’t Peaceful in Palestine
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2073 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
Hyrule19183 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
28094 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
Hyrule19183 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
Poland17545 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
Poland17545 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
Turkey781 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 7h 2m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 183
StarCraft: Brood War
Britney 32903
Rain 1885
GuemChi 883
firebathero 443
Horang2 404
BeSt 294
Mong 233
Leta 230
Soma 203
Rush 98
[ Show more ]
PianO 89
Barracks 65
Sharp 51
ggaemo 51
sorry 46
EffOrt 45
Shine 40
Mind 36
NotJumperer 33
yabsab 32
ZerO 28
Shinee 11
Movie 11
SilentControl 10
Bale 9
League of Legends
JimRising 533
C9.Mang0427
Counter-Strike
olofmeister1637
Heroes of the Storm
Khaldor10
Other Games
summit1g5880
XaKoH 295
singsing143
ZerO(Twitch)4
Organizations
Other Games
BasetradeTV68
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• LUISG 33
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• HappyZerGling94
Upcoming Events
Big Brain Bouts
7h 2m
Elazer vs Nicoract
Reynor vs Scarlett
Replay Cast
14h 2m
Sparkling Tuna Cup
2 days
Krystianer vs TBD
TriGGeR vs SKillous
Percival vs TBD
ByuN vs Nicoract
Replay Cast
2 days
Wardi Open
3 days
Liquipedia Results

Completed

KCM Race Survival 2025 Season 4
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 2
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.