Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node技术栈选型 #38

Open
AlexZ33 opened this issue Jun 5, 2020 · 0 comments
Open

Node技术栈选型 #38

AlexZ33 opened this issue Jun 5, 2020 · 0 comments

Comments

@AlexZ33
Copy link
Member

AlexZ33 commented Jun 5, 2020

技术栈 选型原因
Vue.js + Element UI Vuejs便于快速上手
Egg.js express不考虑,Koa算比较底层的封装框架,只是加了中间件等. Egg.js是在Koa的基础上再做了一层框架封装,适合中小型项目,上手快,概念易懂,约定大于配置
Nest.js Nest.js是 Node 渐进式框架,底层默认使用 express,Nest.js+tyopeorm适合大型项目后期好维护.比较简单项目,选择了Egg.js
数据库ORM 对于简单的数据库访问egg提供了egg-mysql插件,但使用过程中发现文档不太健全,复杂一点的sql不好实现,所有还是选择了采用ORM,结构也相对更清晰。Sequelize作为一个成熟的ORM框架,虽然没有中文文档,不过star数众多,也是egg推荐的ORM框架,业务稳定压倒一切
数据源读取 根据业务背景,后台的数据源往往数组提供,数据组会利用定时作业,将数据输出到。数据工厂,保存在HIVE数据表中,对应到Hadoop集群的结构化文件中,再利用。HDFS (Hadoop分布式文件系统)将文件内容定时导出到Mysql数据库中。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant