./mvnw package -Pnative -Dquarkus.native.container-runtime=docker -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-native-image:19.3.1-java8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/default/grub | |
add this line to your grub file: | |
GRUB_RECORDFAIL_TIMEOUT=0 | |
sudo update-grub | |
Done! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "java", | |
"name": "backend", | |
"request": "attach", | |
"hostName": "localhost", | |
"port": 5005 | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
sudo usermod -a -G microk8s <username>
sudo microk8s.kubectl config view --raw > $HOME/.kube/config
microk8s.enable metallb
consumer.properties
group.id=group1
./kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic test
./kafka-console-producer.sh --broker-list kafka:9092 --topic test
./kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic test --consumer.config ./consumer.properties
./kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic test --consumer.config ./consumer.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 管理型系統,如營運類系統,首選關聯式。 | |
2. 大流量系統,如電商單品頁的某個服務,後台選關聯式,前台選內存式。 | |
3. 日誌型系統,原始數據選列式,日誌搜尋選倒排索引。 | |
4. 搜尋型系統,指站內搜尋,非通用搜尋,如商品搜尋,後台選關聯式,前台選倒排索引。 | |
5. 交易型系統,如庫存、交易、記帳,選關聯式+快取+一致性協議,或新型關聯式資料庫。 | |
6. 離線運算,如大量數據分析,首選列式,關聯式亦可。 | |
7. 即時運算,如即時監控,可以選時序資料庫,或列式資料庫。 |