随笔分类 -  architecture

摘要: 阅读全文
posted @ 2021-12-25 15:03 Ready! 阅读(21) 评论(0) 推荐(0) 编辑
摘要:1, 基于centos镜像,创建container并进入 docker run -it --privileged=true --name webserver2 -p 8888:80 centos /sbin/init 2, 安装并启动nginxyum install nginxsystemctl s 阅读全文
posted @ 2021-03-15 13:38 Ready! 阅读(73) 评论(0) 推荐(0) 编辑
摘要:看到一篇关于最佳线程数相关的文章,内容比较经典,不敢私藏,分享一下! 最佳线程数: 性能压测的情况下,起初随着用户数的增加,QPS会上升,当到了一定的阀值之后,用户数量增加QPS并不会增加,或者增加不明显,同时请求的响应时间却大幅增加。这个阀值我们认为是最佳线程数。 为什么要找最佳线程数 1.过多的 阅读全文
posted @ 2017-09-09 08:33 Ready! 阅读(5755) 评论(0) 推荐(0) 编辑
摘要:网络质量不好的情况下,访问maven.org网站下载jar包,很有可能下载的包不完整或损坏的(表面看不出来);所以,最好的办法就是-直接到maven网站下载,然后放到对应的.m2目录,然后eclipse中刷新,一切就好了! 阅读全文
posted @ 2016-11-17 15:52 Ready! 阅读(3718) 评论(0) 推荐(0) 编辑
摘要:根据 RFC2617 的规定,HTTP 有两种标准的认证方式,即,BASIC 和 DIGEST。HTTP Basic Authentication 是指客户端必须使用用户名和密码在一个指定的域 (Realm) 中获取认证。 正如"HTTP Basic Authentication"这个名字,它是 A 阅读全文
posted @ 2016-10-29 12:26 Ready! 阅读(488) 评论(0) 推荐(0) 编辑
摘要:To configure Hive for use with HiveServer2, include the following configuration properties in the .../hive-site.xmlconfiguration file. hive.support.c... 阅读全文
posted @ 2015-06-17 22:32 Ready! 阅读(1591) 评论(0) 推荐(0) 编辑
摘要:a. 由于MapReduce的shuffle过程需写磁盘,比较影响性能;而Spark利用RDD技术,计算在内存中进行.b. MapReduce计算框架(API)比较局限, 而Spark则是具备灵活性的并行计算框架.c. 再说说Spark API方面- Scala: Scalable Language... 阅读全文
posted @ 2015-05-21 17:29 Ready! 阅读(5988) 评论(0) 推荐(0) 编辑
摘要:关系型数据库系统以二维表的形式呈现数据,比如下面的员工表RowIdEmpIdLastnameFirstnameSalary00110SmithJoe4000000212JonesMary5000000311JohnsonCathy4400000422JonesBob55000上面的格式仅仅存在于理论... 阅读全文
posted @ 2015-04-20 13:55 Ready! 阅读(5762) 评论(0) 推荐(0) 编辑
摘要:While data integrity is managed very effectively within a single database with row locking, deadlock detection, and roll-back features, distributed da... 阅读全文
posted @ 2015-02-13 15:30 Ready! 阅读(187) 评论(0) 推荐(0) 编辑
摘要:Event Aggregator -- 彻底解耦了事件的定义与行为。一般的事件使用中,我们至少需要引用到定义事件的类。比如,class A{//define event}class B{//some behaviour}class ControlClass{ Aa = new A();a.EventX += B.Method1;}使用了EventAggregator后,我们在事件定义的时候Publish,仅需要在其它任何需要的地方Subscribe! 阅读全文
posted @ 2012-04-13 16:57 Ready! 阅读(335) 评论(0) 推荐(0) 编辑
摘要:applicationácomponent/serviceáclass/objectáfunctionástatementáinstruction setácircuitátransistorAll of us are involved in the blue sections 阅读全文
posted @ 2012-01-05 11:50 Ready! 阅读(227) 评论(0) 推荐(0) 编辑
摘要:元数据是关于数据的数据。在编程语言上下文中,元数据是添加到程序元素如方法、字段、类和包上的额外信息。什么是元编程?运行时动态创建类型的功能称为元编程。 从学习UML就知道meta-的重要性了,再后来了解到MOF(MetaObjectFacility)就更加着迷这个Meta-。Meta- 在...之中... 对于想真正了解一个Framework,了解它的Meta东西是十分重要的。不管任何一个Framework,肯定存在着它自己的MetaData的,. NET作为一个Framework自然也存在好多元数据,我们编写应用程序中如果可以灵活的运用元编程技术,肯定可以使我们的程序更加灵活,高效甚至自我 阅读全文
posted @ 2011-11-21 18:58 Ready! 阅读(350) 评论(0) 推荐(0) 编辑
摘要:When we are access a website, after finishing a pair of HTTP request/response, the TCP connectionis NOTclosed immediately, but after some time, basically depending on the seeting value of client web browser, like for IE, the default value is 1 minute, you can change the default value, refer to http: 阅读全文
posted @ 2011-10-01 12:18 Ready! 阅读(485) 评论(0) 推荐(0) 编辑
摘要:从应用程序包括用户界面的角度来看,存取信息的最小单位是Byte(字节);从磁盘的物理结构来看存取信息的最小单位是扇区,一个扇区是512字节;从操作系统对硬盘的存取管理来看,存取信息的最小单位是簇,簇是一个逻辑概念,一个簇可以是2、4、8、16、32或64个连续的扇区。一个簇只能被一个文件占用,哪怕是只有1个字节的文件,在磁盘上存储时也要占用一个簇,这个簇里剩下的扇区是无用的。例如用NTFS文件系统格式化的时候默认是8个扇区组成一个簇,即4096字节。所以你如果保存了一个只有1字节的文件(例如字母N),它在磁盘上实际也要占用4096字节(4K),所以“簇”也可以理解为磁盘存取信息的最小单位。 阅读全文
posted @ 2011-09-26 11:45 Ready! 阅读(568) 评论(0) 推荐(0) 编辑
摘要:Context-boundobjectsareaspecialcaseof.NETremoting(inparticular,ofclient-activatedobjects).Inmanyrespects.NETtreatsthemjustlikeremoteobjects,butitdoesoptimizesomeelementsofitsremotingarchitectureforcontext-boundobjects—forexample,asmentionedpreviously,thechannelusedforcross-contextcallsisanoptimizedc 阅读全文
posted @ 2011-07-20 15:51 Ready! 阅读(714) 评论(0) 推荐(0) 编辑
摘要:There are two fundamental models of interprocess communication:(1) shared memory: singal, semaphore, monitor,memory-mapped file.(2) message passing: socket(the primitive way, Direct or communications), pipe(Indirect communications),MSMQ,RPC (COM, DCOM, .Net Remoting, WCF, CORBA, Java RMI, etc., are 阅读全文
posted @ 2010-11-18 14:24 Ready! 阅读(444) 评论(0) 推荐(0) 编辑
摘要:Coding to well-defined interfaces, particularly when using the dependency injection pattern, is the key to achieving loose coupling. By coupling an object to an interface instead of a specific impleme... 阅读全文
posted @ 2010-10-26 13:55 Ready! 阅读(196) 评论(0) 推荐(0) 编辑
摘要:A database index is a data structure that improves the speed of data retrieval operations on a database table at the cost of slower writes and increased storage space.Indexes can be created using one ... 阅读全文
posted @ 2010-09-25 15:43 Ready! 阅读(745) 评论(0) 推荐(0) 编辑
摘要:之前在一本介绍操作系统的书上看到说,由MMU内存管理单元负责把虚拟内存地址转换为物理内存地址。 后来在研究 Page Table的时候有看到介绍这么说,When a process requests access to its memory, it is the responsibility of the operating system to map the virtual address pr... 阅读全文
posted @ 2010-09-14 15:22 Ready! 阅读(422) 评论(0) 推荐(0) 编辑
摘要:look intothe implementations of some essential libararies and essentail technologies ........ to be .... 阅读全文
posted @ 2010-09-09 17:03 Ready! 阅读(257) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示