Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 5: MicroProfile Configuration #14

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

ttelang
Copy link
Contributor

@ttelang ttelang commented Mar 20, 2024

Adding Chapter 5 about MicroProfile Configuration

Understanding MicroProfile Configuration

Different environments required for Microservices development

Working with Various Configuration Sources

Key capabilities of MicroProfile Configuration
Adding first 4 sections to chapter05.adoc
@Emily-Jiang
Copy link
Member

I am reviewing this PR and will provide feedback asap.

@ttelang
Copy link
Contributor Author

ttelang commented Apr 8, 2024

Awaiting review feedback and approval.

- `Property` - It represents a key/value pair in the configuration data.
- `Converter<T>` - This interface implements custom converters that convert
configuration values from String to any desired type.
- `PropertyExpression` - An interface supporting expression evaluation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect. There is no such an interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with 69f8aa8

}
----

In this example, we’re injecting a property named "product.maintenanceMessage" into the message field of our MaintenanceMessage class. If the property does not exist, a `org.eclipse.microprofile.config.ConfigPropertyNotFoundException` will be thrown.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception does not exist.


While the MicroProfile Config specification provides a powerful and flexible framework for configuration management, handling dynamic updates and configuration change events may require additional custom development or the use of external tools. By considering the strategies mentioned above, developers can effectively manage configuration changes, ensuring their microservices remain responsive and resilient in dynamic environments.

While MicroProfile Config provides a flexible and powerful framework for managing application configurations, securing sensitive data within those configurations requires careful consideration and the implementation of additional security measures. By following best practices for configuration security, developers can help protect their applications from potential threats and vulnerabilities.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This paragraph is quite repetitive and repeat the beginning of the message in line 587.

ttelang and others added 6 commits April 16, 2024 15:30
Co-authored-by: Emily Jiang <emijiang6@googlemail.com>
Co-authored-by: Emily Jiang <emijiang6@googlemail.com>
Minor grammar fixes
@Emily-Jiang
Copy link
Member

@ttelang please comment here after you have addressed all of the comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants