项目作者: cjwchonjac

项目描述 :
Starter kit of Spring-React
高级语言: JavaScript
项目地址: git://github.com/cjwchonjac/kotlin-spring-boot-react-starter-kit.git
创建时间: 2017-11-26T08:05:26Z
项目社区:https://github.com/cjwchonjac/kotlin-spring-boot-react-starter-kit

开源协议:MIT License

下载


kotlin-spring-boot-react-starter-kit

Starter kit of Spring-React. This project includes base implementation of posting-feature app. it is sample application of isomorhpic rendering with nashorn script engine.

How to build:

  • Clone the repo: git clone https://github.com/cjwchonjac/kotlin-spring-boot-react-starter-kit.git
  • Install Node and npm
  • Install node moduels npm install
  • Run npm script npm run build
  • Run Spring-Boot server ./gradlew bootRun

Thread Local vs Object Pool

Most other sample projects have been implemented by using thread locals of Nashorn script engines to ensure thread safety. but this project uses pooling of Nashorn script engines to ensure thread safety. Because HTML rendering process is definetely CPU-bound task, Object Pooling has no performance problem and is more efficient in terms of memory consumption.