Przeglądaj źródła

Update faq.md (#824)

* Update faq.md

Clarify that using same database for different applications is only for MySQL. Fix minor spelling and grammar.

* Create faq.md

Clarify that TableNamePrefix option is only for MySQL. Minor spelling and grammar corrections.
master
Shawn 3 lat temu
committed by GitHub
rodzic
commit
f0a763e8f9
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 20 dodań i 20 usunięć
  1. +10
    -10
      docs/content/user-guide/en/samples/faq.md
  2. +10
    -10
      docs/content/user-guide/zh/samples/faq.md

+ 10
- 10
docs/content/user-guide/en/samples/faq.md Wyświetl plik

@@ -2,19 +2,19 @@

!!! faq "Any IM group(e.g Tencent QQ group) to learn and chat about CAP?"

None for that. Better than wasting much time in IM group, I hope developers could be capable of independent thinking more, and solve problems yourselves with referenced documents, even create issues or send emails when errors are remaining present.
None of that. Better than wasting much time in IM group, I hope developers could be capable of independent thinking more, and solve problems yourselves with referenced documents, even create issues or send emails when errors are remaining present.

!!! faq "Does it require certain different databases, one each for productor and resumer in CAP?"
!!! faq "Does it require different databases, one each for producer and consumer in CAP?"

Not required differences necessary, a given advice is that using a special database for each program.
No difference necessary, a recommendation is to use a dedicated database for each program.

Otherwise, look at Q&A below.

!!! faq "How to use the same database for different applications?"
defining a prefix name of table in `ConfigureServices` method。
!!! faq "How to use the same database for different applications? (Only for MySQL)"
Define a table prefix name in `ConfigureServices` method.
codes exsample:
Code example:

```c#
public void ConfigureServices(IServiceCollection services)
@@ -31,14 +31,14 @@
}
```

!!! faq "Can CAP not use the database as event storage? I just want to sent the message"
!!! faq "Can CAP not use the database as event storage? I just want to send the message"

Not yet.

The purpose of CAP is that ensure consistency principle right in microservice or SOA architechtrues. The solution is based on ACID features of database, there is no sense about a single client wapper of message queue without database.
The purpose of CAP is that ensure consistency principle right in microservice or SOA architectures. The solution is based on ACID features of database, there is no sense about a single client wapper of message queue without database.

!!! faq "If the consumer is abnormal, can I roll back the database executed sql that the producer has executed?"

Can't roll back, CAP is the ultimate consistency solution.

You can imagine your scenario is to call a third party payment. If you are doing a third-party payment operation, after calling Alipay's interface successfully, and your own code is wrong, will Alipay roll back? If you don't roll back, what should you do? The same is true here.
You can imagine your scenario is to call a third party payment. If you are doing a third-party payment operation, after calling Alipay's interface successfully, and your own code is wrong, will Alipay roll back? If you don't roll back, what should you do? The same is true here.

+ 10
- 10
docs/content/user-guide/zh/samples/faq.md Wyświetl plik

@@ -2,19 +2,19 @@

!!! faq "Any IM group(e.g Tencent QQ group) to learn and chat about CAP?"

None for that. Better than wasting much time in IM group, I hope developers could be capable of independent thinking more, and solve problems yourselves with referenced documents, even create issues or send emails when errors are remaining present.
None of that. Better than wasting much time in IM group, I hope developers could be capable of independent thinking more, and solve problems yourselves with referenced documents, even create issues or send emails when errors are remaining present.

!!! faq "Does it require certain different databases, one each for productor and resumer in CAP?"
!!! faq "Does it require different databases, one each for producer and consumer in CAP?"

Not requird differences necessary, a given advice is that using a special database for each program.
No difference necessary, a recommendation is to use a dedicated database for each program.

Otherwise, look at Q&A below.

!!! faq "How to use the same database for different applications?"
defining a prefix name of table in `ConfigureServices` method。
!!! faq "How to use the same database for different applications? (Only for MySQL)"
Define a table prefix name in `ConfigureServices` method.
codes exsample:
Code example:

```c#
public void ConfigureServices(IServiceCollection services)
@@ -31,14 +31,14 @@
}
```

!!! faq "Can CAP not use the database as event storage? I just want to sent the message"
!!! faq "Can CAP not use the database as event storage? I just want to send the message"

Not yet.

The purpose of CAP is that ensure consistency principle right in microservice or SOA architechtrues. The solution is based on ACID features of database, there is no sense about a single client wapper of message queue without database.
The purpose of CAP is that ensure consistency principle right in microservice or SOA architectures. The solution is based on ACID features of database, there is no sense about a single client wapper of message queue without database.

!!! faq "If the consumer is abnormal, can I roll back the database executed sql that the producer has executed?"

Can't roll back, CAP is the ultimate consistency solution.

You can imagine your scenario is to call a third party payment. If you are doing a third-party payment operation, after calling Alipay's interface successfully, and your own code is wrong, will Alipay roll back? If you don't roll back, what should you do? The same is true here.
You can imagine your scenario is to call a third party payment. If you are doing a third-party payment operation, after calling Alipay's interface successfully, and your own code is wrong, will Alipay roll back? If you don't roll back, what should you do? The same is true here.

Ładowanie…
Anuluj
Zapisz