• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:59
CEST 13:59
KST 20:59
  • 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: Voting9[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
BSL Team A vs Koreans - Sat-Sun 16:00 CET6Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)80Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition32
StarCraft 2
General
Revisiting the game after10 years and wow it's bad The New Patch Killed Mech! Stellar Fest: StarCraft II returns to Canada herO Talks: Poor Performance at EWC and more... TL.net Map Contest #21: Voting
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament SC2's Safe House 2 - October 18 & 19 $1,200 WardiTV October (Oct 21st-31st) WardiTV Mondays RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BW caster Sayle BSL Team A vs Koreans - Sat-Sun 16:00 CET BW General Discussion Question regarding recent ASL Bisu vs Larva game [Interview] Grrrr... 2024
Tourneys
[ASL20] Semifinal B SC4ALL $1,500 Open Bracket LAN [Megathread] Daily Proleagues [ASL20] Semifinal A
Strategy
Current Meta BW - ajfirecracker Strategy & Training Relatively freeroll strategies Siegecraft - a new perspective
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Path of Exile Nintendo Switch Thread ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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 Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Series you have seen recently... Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
Formula 1 Discussion 2024 - 2026 Football Thread MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
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
The Heroism of Pepe the Fro…
Peanutsc
Rocket League: Traits, Abili…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1509 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
Hyrule19144 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
28091 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
Hyrule19144 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
Poland17384 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
Poland17384 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
Sparkling Tuna Cup
10:00
Weekly #110
ByuN vs GgMaChineLIVE!
herO vs SKillous
TBD vs Solar
CranKy Ducklings219
IndyStarCraft 206
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 489
IndyStarCraft 206
Railgan 44
MindelVK 15
StarCraft: Brood War
Horang2 2844
Barracks 933
Hyuk 899
Larva 837
Hyun 676
firebathero 463
Soma 363
Pusan 286
sSak 285
PianO 255
[ Show more ]
Mini 227
Stork 217
Last 211
Mong 178
ZerO 177
Light 139
ggaemo 115
Backho 101
sorry 95
Sea.KH 44
Sacsri 40
Sharp 34
JulyZerg 25
sas.Sziky 25
ToSsGirL 22
Noble 15
scan(afreeca) 11
zelot 10
IntoTheRainbow 9
Dota 2
Gorgc4312
Pyrionflax225
League of Legends
JimRising 281
Counter-Strike
x6flipin405
oskar55
Heroes of the Storm
Khaldor231
Other Games
singsing2257
B2W.Neo837
DeMusliM376
Fuzer 142
Sick135
ToD36
Trikslyr25
ZerO(Twitch)14
Organizations
Counter-Strike
PGL8698
StarCraft: Brood War
CasterMuse 27
lovetv 13
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 92
• Adnapsc2 7
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 33
League of Legends
• Jankos2415
Upcoming Events
Safe House 2
5h 1m
IPSL
7h 1m
Sziky vs Havi
Artosis vs Klauso
Monday Night Weeklies
1d 4h
WardiTV Invitational
1d 23h
WardiTV Invitational
2 days
Tenacious Turtle Tussle
3 days
The PondCast
3 days
WardiTV Invitational
4 days
Online Event
5 days
RSL Revival
5 days
[ Show More ]
RSL Revival
5 days
WardiTV Invitational
5 days
Afreeca Starleague
6 days
Snow vs Soma
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
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
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 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.