随笔分类 - sde skills
摘要:All principles General Principles KISS → Start simple, add complexity only when needed DRY → Reduce duplication, simplify maintenance YAGNI → Build fo
阅读全文
摘要:1 Proximity Service 1) requirements Functional Requirements Non-Functional Requirements 1 Return all businesses based on user's location (latitute and
阅读全文
摘要:SOA-> Dubbo 现在Spring Cloud提供了一站式微服务解决方案 1.2 微服务架构引入 1) 单体应用架构 Monolithic Architecture pros: 简单,解决bug方便 cons: 耦合性太强 新增业务困难 5) 垂直架构 vertical architectur
阅读全文
摘要:DDIA 1.0 基础介绍 Reliability Scalability Maintain 1.1 Reliability work under failure. Error 1) hardware error disk / network 2) software error bug 3) hum
阅读全文
摘要:1、性能优化概述 Performance optimization 1)性能分析六个步骤 选择指标评估应用程序和系统的性能 evaluation indicator 为应用程序和系统设置性能目标 target 进行性能基准测试 baseline 性能分析定位瓶颈 bottleneck 优化系统和应用
阅读全文
摘要:官网: https://reactjs.org/ https://zh-hans.reactjs.org/ https://beta.reactjs.org/ 3 简介 声明式UI。命名式类似于函数。 组件化 夸平台支持比较好 4 基础环境搭建 先安装 nodejs https://nodejs.o
阅读全文
摘要:2. API A程序需要B程序部分,可以将B打包,给A用。日历Jar包。这种API称为API A需要B的部分功能,只需要B提供访问入口或者路径,则A程序按照约定就可以访问。例如 http 协议请求,这种称为应用接口 3. Web发展史 静态内容阶段 CGI程序阶段 脚本语言阶段,JSP、PHP、AS
阅读全文
摘要:1 JVM and OS 2 JVM JRE JDK JDK -> JRE -> JVM 3 JVM The JVM is a stack-based structure. The JVM translates bytecode in two ways: interpretation executi
阅读全文
摘要:concurrent programming 1.4 wait() 与 notify 例如消息队列生成和消费消息时候,可以用 wait (), notify 通知对方 wait 和 notify 必须在 synchronized方法里。 1) wait 释放当前线程的锁,线程进入等待状态,直到其他线
阅读全文
摘要:1.1 缓存使用场景 1) 访问量很大的时候,DB数据在磁盘上。如果加入缓存,可以先去缓存读,如果没有再去DB读。可以减轻访问压力Redis没有锁,单线程、单进程。读11w / s, 写 8万 /s 2) 做Session分离 在各个Tomcat间复制 3)做分布式锁 4)做乐观锁 1.2 缓存的概
阅读全文
摘要:1 LRU example HashMap + DeLinkedList 2 Mysql Architecture 3 Log 1)error log 2)query log 3)binlog only record changes, not something like select. 4)slo
阅读全文
摘要:1.2 Socket编程回顾 TCP/IP, 传输层协议。HTTP应用端 同步并阻塞(BIO, 多个人看多个水壶),适用于对资源要求搞的 同步非阻塞(NIO, 一个人看多个水壶,人不能干别的),适用于弹幕,通信,聊天,现在NIO用的多 异步非阻塞(AIO,事件通知水已烧开,人能干别的),相册服务器,
阅读全文
摘要:1.1 分布式和集群 分布式一定是集群,但是集群不一定是分布式。 单体应用:所有服务写在一个机器上。(用户、支付、物流、商品)。 分布式:各个子系统是一个服务。(拆分系统) 集群:多个实例一起工作。 分布式一定是集群,集群不一定是分布式 1.2 一致性Hash算法 HD5(加密) 普通hash算法存
阅读全文
摘要:1.1 Nginx是什么?什么场景需要? Nginx到底是什么? 是高性能HTTP和反向代理的web服务器 Nginx做什么事情? 主流应用,HTTP服务器,Web服务器。(性能高,非常注重效率,能够经受高负载考验,支出5w并发数,CPU占用、内存占用低) 反向代理服务器 负载均衡服务器 动静分离(
阅读全文
摘要:1.3 Tomcat目录 bin下,startup.bat, startup.sh, shutdown.bat, shutdown.sh conf logging.properties 日志相关配置 conf server.xml 需要配置,部署应用端口指定 conf tomcat-users.xm
阅读全文
摘要:1.2 约定优于配置 本质是对系统、类或框架中一些东西假定一个大众合理的默认值 加入约定和配置一致,无需操作 如果偏离约定 需要手动配置 springboot 就是快速使用spring的框架 1.4 Starter 特性 将常用依赖分组,然后合并到一个依赖中。(起步依赖) 把具备某种坐标打包一起,并
阅读全文
摘要:SpringMVC是 Spring提供的用于简化web开发的框架。 1.5 Servlet Servlet能够响应请求的对象。接收请求,返回响应 SpringMVC可以认为是Servlet的封装。 1.6 SpringMVC开发流程回顾 各种配置。Controller,DispatchServlet
阅读全文
摘要:1 Spring: With IOC and AOP as the core. Layered framework. Lightweight (no need to rely on other software, only JVM and container environment required
阅读全文
摘要:一、自定义持久层框架 1.1 分析 持久层。与数据交互的一层。Dao层 。 可能存在的问题: 问题 代码 解决方案 硬编码。对底层驱动和数据库配置信息硬编码 Class.forName("com.mysql.jdbc.Driver"); connection = DriverManager.getC
阅读全文
摘要:1 OOP Modules Terms Description Object Oriented Programmming (OOP) Encapsulation public protected private The object encapsulates variables and method
阅读全文

浙公网安备 33010602011771号