File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed
Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div >
3+
4+ </div >
5+ </template >
6+
7+ <script >
8+
9+ export default {
10+ name: ' HideArticle' ,
11+ data () {
12+ return {
13+
14+ }
15+ },
16+
17+ mounted () {
18+
19+ import (' ../../public/js/btwplugin' )
20+
21+ }
22+ }
23+ </script >
24+
25+ <style lang="scss" scoped>
26+
27+ </style >
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ module.exports = {
5555 name : "apple-mobile-web-app-capable" ,
5656 content : "yes"
5757 } ] ,
58+ [
59+ 'script' ,
60+ { charset : 'utf-8' , src : 'https://my.openwrite.cn/js/readmore.js' } ,
61+ ] ,
5862 ] ,
5963 plugins : [
6064 // [
Original file line number Diff line number Diff line change 1+ window . onload = function ( ) {
2+ themeDefaultContent = $ (
3+ '#app > .theme-container>.page > .theme-default-content'
4+ ) ;
5+
6+ themeDefaultContent . attr ( 'id' , 'container' ) ;
7+ btw = new BTWPlugin ( ) ; // 注意btw需要是个全局变量,把const去掉
8+ btw . init ( {
9+ id : 'container' ,
10+ blogId : '31809-1711934972129-598' ,
11+ name : 'JavaEdge' ,
12+ qrcode : 'https://javaedge-1256172393.cos.ap-shanghai.myqcloud.com/qrcode_for_gh_ab5f6d46c1ff_258.jpg' ,
13+ keyword : '编程严选网' ,
14+ } ) ;
15+ } ;
Original file line number Diff line number Diff line change @@ -105,3 +105,5 @@ RPC调用包括服务端和调用端,调用端向服务端发起调用。
105105设置专门限流服务,压力都会集中到这服务,对这服务性能要求会提高,当业务再变大,限流服务成为瓶颈,得换解决方案吗?不一定采用集中式限流,考虑分布式限流,将流量分散到多个限流服务,以提高系统可靠性和性能。还可考虑采用负载均衡、缓存等技术来优化系统性能。
106106
107107调用方限流时,应该是发起调用时请求限流器去判断阈值,调用完成后,还要通知限流器,才能达到接近饱和性能。
108+
109+ <HideArticle />
You can’t perform that action at this time.
0 commit comments