Skip to content

Instantly share code, notes, and snippets.

View BANG88's full-sized avatar
🍉
Focusing

阿邦 BANG88

🍉
Focusing
  • GUANG ZHOU
View GitHub Profile
@BANG88
BANG88 / index.ios.js
Created February 17, 2016 01:40 — forked from Jpoliachik/index.ios.js
ReactNative LayoutAnimation Example
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
TouchableOpacity,
LayoutAnimation,
} from 'react-native';
@BANG88
BANG88 / gist:aa7bbb3e2e09dcb12cfb
Created January 27, 2016 02:14
Walmart Mobile node.js Setup

Overview

We run multiple server processes in two data centers. Each process listens on two ports, one for HTTP and one for HTTPS. HTTPS is terminated by Apache prior to reaching node.js. HTTP goes directly from the client to node.js (through a master load balancer). We do not use clusters. We slice our physical servers into thin virtual machines running SmartOS, each with about 3GB of memory designed for a single node.js process.

Our node.js servers are hapi.js servers using the composer functionality and plugins architecture. We have three sets of plugins loaded: mobile web front end experience (single page app), legacy API reverse proxy, and monitoring.

We also serve original node.js services off another server zone which runs closed source plugins using hapi.

Analytics

We couldn’t find that file to show.